support the container:...
notation for ps --filter network=...
#10361
Labels
Good First Issue
This issue would be a good issue for a first time contributor to undertake.
kind/feature
Categorizes issue or PR as related to a new feature.
locked - please file new issue/PR
Assist humans wanting to comment on an old issue or PR with locked comments.
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
I can't find any reasonable way to ask for all containers that are using another container's network.
Steps to reproduce the issue:
podman run --name=alpha --net=testnet -d docker.io/alpine sleep 1h
podman run --name=bravo --net=container:alpha -d docker.io/alpine sleep 1h
podman container ps --filter network=container:alpha
Describe the results you received:
No containers listed
Describe the results you expected:
Container
bravo
listed (and maybealpha
too, I'm not that picky)Additional information you deem important (e.g. issue happens only occasionally):
podman container ps --filter network=testnet
only listsalpha
, notbravo
.podman container ps --filter network=container:$(podman inspect --format {{.ID}} alpha)
doesn't list anything.podman container ps --format '{{.Names}} {{.Networks}}'
tells me that it thinksbravo
is in thepodman
network, which seems wrong.Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide? (https://github.com/containers/podman/blob/master/troubleshooting.md)
Yes
The text was updated successfully, but these errors were encountered: