mirror of
https://github.com/containers/podman.git
synced 2026-07-10 15:25:00 -04:00
When multiple containers in a pod YAML specify the same hostPort, podman kube play previously accepted the YAML and started the containers, causing one of them to fail at runtime with a confusing bind() error. Add early validation in getPodPorts() to detect duplicate (hostIP, hostPort, protocol) tuples across containers and return a clear error message naming both conflicting containers. Fixes: https://github.com/podman-container-tools/podman/issues/26622 Signed-off-by: Miguel Álvarez <mialvare@redhat.com>