Podman Network Allows Name/Mode Collisions #11448
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.
network
Networking related issue or feature
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
podman-network
names can collide with network modes.Steps to reproduce the issue:
podman network create private
podman run -d --net="private" example:latest
podman inspect example | jq '.[].NetworkSettings.Networks'
has only defaultpodman
after specifying a network name that is also a mode.Describe the results you received:
You can
podman network create private
without error. When youpodman run --network private
the network mode is used but not the network with the nameprivate
.Describe the results you expected:
The network should not be created if the name of the network is reserved for modes.
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)
No
Additional environment details (AWS, VirtualBox, physical, etc.):
Rocky Linux 8.4 in KVM\QEMU VM
The text was updated successfully, but these errors were encountered: