Closed ChrisBr closed 8 months ago
@baude I think you looked at this before?
I am not the biggest fan of adding this to the network inspect output. The current network inspect output is not docker compatible at all, there are just a lot of different things in the podman/docker network stack. Also your example output structure would not work because you can have more than ipv4 and ipv6 address per network. I also have no clue what the EndpointID is, is it the network ID?
You can get docker compatible output via the API. Although I am not sure if this is correctly implement there.
The question I have, Is it useful to a user to figure out which containers are using a particular network?
The question I have, Is it useful to a user to figure out which containers are using a particular network?
You can get this with podman ps --filter network=name
Ok, as long as that is easy to retrieve, I don't see the compatibility as that big of an issue.
this is a duplicate of a jira card i was working on. the code is done but the problem is that would be a breaking change on output. we discussed podman 5, but i also would like to go back and look at things to see if i can weasel it in without breaking changes.
You can get this with podman ps --filter network=name
~Our use case is that we have like 70-80 containers running and we need to find which ones are in the same network.~
podman ps --filter network=name
This would work but would break compatibility with docker (which I understand is not a big concern for you).
we really do try on the compatibility stuff. in this case, the easy button just won't work ... but if you look at my update, i committed to trying it a different way. I have the code all written and it works, so not far away.
A friendly reminder that this issue had no activity for 30 days.
@baude what is the state of this one now?
feel victim to other priorities. will try to pick back up soon,
A friendly reminder that this issue had no activity for 30 days.
@Luap99 PTAL
A friendly reminder that this issue had no activity for 30 days.
@baude @Luap99 @flouthoc PTAL
A friendly reminder that this issue had no activity for 30 days.
@baude @Luap99 @flouthoc @mheon re-ping
cannot be done until podman 5
Sorry I missed that. Wish there was a way to stop the reminder on issues waiting for podman 5.
/kind bug
Description
podman network inspect
doesn't include containers using the networkSteps to reproduce the issue:
Create network
podman network create
Start container
podman run -it --network podman1 alpine
Inspect network
podman inspect podman1
Describe the results you received:
podman inspect podman1
does not contain a list of containers using the network.Describe the results you expected:
Same command in docker contains a list of containers.
Additional information you deem important (e.g. issue happens only occasionally):
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/main/troubleshooting.md)
Yes
Additional environment details (AWS, VirtualBox, physical, etc.):
Macbook M1 installed with homebrew