mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-08-13 04:09:36 +00:00
Move the handling of Publish key to a method use --publish instead of -p Use the new method for both .container and .kube files Adjust .container tests Add .kube tests Update the man page Signed-off-by: Ygal Blum <ygal.blum@gmail.com>
54 lines
1.2 KiB
Text
54 lines
1.2 KiB
Text
[Container]
|
|
Image=localhost/imagename
|
|
## assert-podman-args --expose=1000
|
|
ExposeHostPort=1000
|
|
## assert-podman-args --expose=2000-3000
|
|
ExposeHostPort=2000-3000
|
|
|
|
## assert-podman-args --publish 127.0.0.1:80:90
|
|
PublishPort=127.0.0.1:80:90
|
|
|
|
## assert-podman-args --publish 80:91
|
|
PublishPort=0.0.0.0:80:91
|
|
|
|
## assert-podman-args --publish 80:92
|
|
PublishPort=:80:92
|
|
|
|
## assert-podman-args --publish 127.0.0.1::93
|
|
PublishPort=127.0.0.1::93
|
|
|
|
## assert-podman-args --publish 94
|
|
PublishPort=0.0.0.0::94
|
|
|
|
## assert-podman-args --publish 95
|
|
PublishPort=::95
|
|
|
|
## assert-podman-args --publish 80:96
|
|
PublishPort=80:96
|
|
|
|
## assert-podman-args --publish 97
|
|
PublishPort=97
|
|
|
|
## assert-podman-args --publish 1234/udp
|
|
PublishPort=1234/udp
|
|
|
|
## assert-podman-args --publish 1234:1234/udp
|
|
PublishPort=1234:1234/udp
|
|
|
|
## assert-podman-args --publish 127.0.0.1:1234:1234/udp
|
|
PublishPort=127.0.0.1:1234:1234/udp
|
|
|
|
## assert-podman-args --publish 1234/tcp
|
|
PublishPort=1234/tcp
|
|
|
|
## assert-podman-args --publish 1234:1234/tcp
|
|
PublishPort=1234:1234/tcp
|
|
|
|
## assert-podman-args --publish 127.0.0.1:1234:1234/tcp
|
|
PublishPort=127.0.0.1:1234:1234/tcp
|
|
|
|
## assert-podman-args --expose=2000-3000/udp
|
|
ExposeHostPort=2000-3000/udp
|
|
|
|
## assert-podman-args --expose=2000-3000/tcp
|
|
ExposeHostPort=2000-3000/tcp
|