podman icon indicating copy to clipboard operation
podman copied to clipboard

Empty PortBindings create warning (Docker deprecates auto-backfill of empty HostIP/HostPort)

Open ajoshua2004 opened this issue 2 weeks ago • 1 comments

Feature request description

Docker Engine API v1.52 deprecates the automatic backfill of empty PortBindings lists. When a container port has an empty bindings list (e.g. "8080/tcp": []), Docker treats it as a single binding with an unspecified HostIP/HostPort, which publishes the port on a random host port. For API >= 1.52, POST /containers/create also returns a deprecation warning:

Following container port(s) have an empty list of port-bindings: 8080/tcp. Such bindings will be discarded in a future version.

Podman does neither today. An empty bindings list is silently dropped, so the port isn't published and no warning is returned.

part of #30164

ajoshua2004 avatar Nov 19 '26 18:11 ajoshua2004

/assign

ajoshua2004 avatar Nov 19 '26 18:11 ajoshua2004