network connect should error if netmode is not bridge #9496
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
Containers created with a network mode other than bridge should not work with network connect. (e.g. --network slirp4netns)
Steps to reproduce the issue:
sudo bin/podman run --name test --network slirp4netns -d alpine top
sudo bin/podman network connect cni-podman3 test
This command actually works and connects to the cni network but does not keep it after a restart. Also inspect is broken with
asked to join 2 CNI network(s) [cni-podman3 podman], but have information on 1 network(s)
In my opinion only bridge should be allowed and all other net modes must be rejected by network connect/disconnect.
The text was updated successfully, but these errors were encountered: