Inspection reports non published ports with "null" #11926
Labels
kind/bug
Categorizes issue or PR as related to a bug.
locked - please file new issue/PR
Assist humans wanting to comment on an old issue or PR with locked comments.
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
Regression in podman 3.4.0
When container image has
EXPOSE
ports and not all of them are published, it reports in inspection data this port withnull
. Before 3.4.0 it wasn't reported at all.Steps to reproduce the issue:
Run it with publishing only 2 ports:
podman run -d --name test --publish 11138:138 --publish 11137:137 my_custom_image
Run inspect with podman 3.3.1 and 3.4.0
Describe the results you received:
With 3.3.1 as usual was before:
And with 3.4.0 it's different now:
Notice the
"139/tcp": null
now.It came up with issue from ansible-podman collections - containers/ansible-podman-collections#320
Describe the results you expected:
I'd expect not to have
"139/tcp": null
in results. Is it intentional?Additional information you deem important (e.g. issue happens only occasionally):
Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide? (https://github.com/containers/podman/blob/master/troubleshooting.md)
Additional environment details (AWS, VirtualBox, physical, etc.):
The text was updated successfully, but these errors were encountered: