diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-11-30 19:41:26 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-30 19:41:26 +0100 |
commit | f24812ac3ba969bc5a0628b819699d747c853e36 (patch) | |
tree | 8fb9008547faab653f14e07dd4f380b325874c06 /test/system | |
parent | 9f2c8f267e22897719ee8c3a15202afeaedda547 (diff) | |
parent | a4da384b559796ecbf49746e655876138d494864 (diff) | |
download | podman-f24812ac3ba969bc5a0628b819699d747c853e36.tar.gz podman-f24812ac3ba969bc5a0628b819699d747c853e36.tar.bz2 podman-f24812ac3ba969bc5a0628b819699d747c853e36.zip |
Merge pull request #8230 from mheon/port_net_host_conflict
Ensure that --net=host/pod/container conflicts with -p
Diffstat (limited to 'test/system')
-rw-r--r-- | test/system/030-run.bats | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/system/030-run.bats b/test/system/030-run.bats index 12df966e2..71831da10 100644 --- a/test/system/030-run.bats +++ b/test/system/030-run.bats @@ -532,4 +532,9 @@ json-file | f run_podman untag $IMAGE $newtag $newtag2 } +@test "podman run with --net=host and --port prints warning" { + run_podman run -d --rm -p 8080 --net=host $IMAGE ls > /dev/null + is "$output" ".*Port mappings have been discarded as one of the Host, Container, Pod, and None network modes are in use" +} + # vim: filetype=sh |