From e1c67e6c8579931f44ec61f847f536a8f68202db Mon Sep 17 00:00:00 2001 From: baude Date: Mon, 22 Jan 2018 09:17:51 -0600 Subject: Expose ports from image When an image has a port to expose, we need to expose it. User's input overrides the image's port information. Also, enable port information in ps so we can see which random port is assigned. Signed-off-by: baude Closes: #249 Approved by: rhatdan --- test/podman_networking.bats | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'test') diff --git a/test/podman_networking.bats b/test/podman_networking.bats index b2196b4bc..b27c16634 100644 --- a/test/podman_networking.bats +++ b/test/podman_networking.bats @@ -48,3 +48,12 @@ function setup() { echo "$output" [ "$status" -eq 0 ] } + +@test "expose ports in image" { + run ${PODMAN_BINARY} ${PODMAN_OPTIONS} run -dt -P docker.io/library/nginx:latest + echo "$output" + [ "$status" -eq 0 ] + run bash -c "${PODMAN_BINARY} ${PODMAN_OPTIONS} inspect -l | grep ': 80,'" + echo "$output" + [ "$status" -eq 0 ] +} -- cgit v1.2.3-54-g00ecf