Files
floci/src/main/java
Hector Ventura 957d49255a fix(core): replay a Docker request after a lost response only when it is safe to repeat (#5171)
* fix(core): replay a Docker request after a lost response only when it is safe to repeat

The transport retry replayed every control-plane request except exec calls
and an exclusion list (restart, network connect/disconnect, network create,
unnamed container create), so other mutating calls were still replayed after
a lost response: commit made a second image, pause, unpause and kill got a
409 for a state that had already changed, and rename hit a name conflict.

The policy is now an allowlist: GET, HEAD, DELETE (a replay answers 404,
which callers tolerate) and PUT archive uploads as before, and POST only for
start, stop, wait, image pull, volume create and a named container create.
Every other POST gets one attempt, including any call added later.

* fix(core): replay a volume create only when it names the volume

An unnamed volume create replayed after a lost response makes a second
volume and orphans the first; a named one returns the existing volume.
2026-10-06 07:08:30 -04:00
..