podman
podman copied to clipboard
Empty PortBindings create warning (Docker deprecates auto-backfill of empty HostIP/HostPort)
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
/assign