spiegel_podman/pkg/api/handlers
Jordan Rodgers 7ecac4a65e compat: return 409 Conflict when container name is already in use
The Docker API spec defines HTTP 409 for POST /containers/create when
the requested name is already in use. The handler was returning 500 for
all errors from ContainerCreate, including ErrCtrExists.

This mismatch breaks buildx parallel builds on Podman: buildx checks
for a conflict response to safely converge multiple concurrent builders
onto the already-running BuildKit container. With 500 it treats the
conflict as a fatal error instead, causing all but the first parallel
build to fail.

The fix follows the same pattern already used in the rename handler,
which correctly returns 409 for ErrCtrExists. The swagger annotation
for this endpoint already documents the 409 response.

Signed-off-by: Jordan Rodgers <com6056@gmail.com>
2026-03-13 09:53:04 -07:00
..
compat compat: return 409 Conflict when container name is already in use 2026-03-13 09:53:04 -07:00
grpc Make most of libpod, and everything that relies on it, non-darwin 2026-02-27 22:18:36 +01:00
libpod run modernize -fix ./... 2026-03-12 17:22:01 +01:00
swagger Make libpod return error status code on failure to pull image 2026-03-09 14:26:14 +01:00
types Bump Go version to v6 2025-10-23 11:00:15 -04:00
utils run modernize -fix ./... 2026-03-12 17:22:01 +01:00
decoder.go Bump Go version to v6 2025-10-23 11:00:15 -04:00
types.go Deprecate Legacy structs and use port.String() 2026-03-09 11:09:28 +01:00