mirror of
https://github.com/containers/podman.git
synced 2025-05-17 15:18:43 +08:00
update podman socket output to include also exposed ports
Fixes https://github.com/containers/podman/issues/25851 Co-authored-by: Brent Baude <bbaude@redhat.com> Signed-off-by: Cesar Goncalves <mail@cesargoncalves.com>
This commit is contained in:
@ -427,7 +427,17 @@ t GET containers/json 200 \
|
||||
.[0].Ports[0].PublicPort=8080 \
|
||||
.[0].Ports[0].Type="tcp"
|
||||
|
||||
podman stop bar
|
||||
podman rm -f bar
|
||||
|
||||
# confirm exposed port 8080 shows up in /containers/json
|
||||
|
||||
podman run -d --rm --name bar --expose 8080 $IMAGE top
|
||||
|
||||
t GET containers/json 200 \
|
||||
.[0].Ports[0].PrivatePort=8080 \
|
||||
.[0].Ports[0].Type="tcp"
|
||||
|
||||
podman rm -f bar
|
||||
|
||||
#compat api list containers sanity checks
|
||||
podman run -d --rm --name labelcontainer_with --label slartibart=fast $IMAGE top
|
||||
|
Reference in New Issue
Block a user