diff options
author | Matthew Heon <mheon@redhat.com> | 2020-11-03 10:01:21 -0500 |
---|---|---|
committer | Matthew Heon <mheon@redhat.com> | 2020-11-04 13:42:58 -0500 |
commit | a4da384b559796ecbf49746e655876138d494864 (patch) | |
tree | 50e87b3ea83db2dc4dc8acd9484867ed33fafbd9 /libpod/network/network.go | |
parent | 4d87306fbe06674b16f188fea187282f29c0dc58 (diff) | |
download | podman-a4da384b559796ecbf49746e655876138d494864.tar.gz podman-a4da384b559796ecbf49746e655876138d494864.tar.bz2 podman-a4da384b559796ecbf49746e655876138d494864.zip |
Ensure that --net=host/pod/container/none warn with -p
Setting port mappings only works when CNI is configuring our
network (or slirp4netns, in the rootless case). This is not the
case with `--net=host`, `--net=container:`, and joining the
network namespace of the pod we are part of. Instead of allowing
users to do these things and then be confused why they do
nothing, let's match Docker and return a warning that your port
mappings will do nothing.
Signed-off-by: Matthew Heon <mheon@redhat.com>
Diffstat (limited to 'libpod/network/network.go')
0 files changed, 0 insertions, 0 deletions