nerdctl inspect network does not show containers that are attached to multiple networks
Description
Presumably: https://github.com/containerd/nerdctl/pull/4052/files#diff-ab476be782991d582002aed7b680f12d1aa32a36beba47b0a6b1a035968cb8beR61 which seem to do a string comparison?
Steps to reproduce the issue
Run a container attached to multiple networks.
Describe the results you received and expected
Container should show in network inspect X, for all networks it is attached to.
What version of nerdctl are you using?
main
Are you using a variant of nerdctl? (e.g., Rancher Desktop)
None
Host information
No response
I would like to fix this.
@tushar5526 sure, all yours :-)
Found the issue, need to use regex to filter out instead of equality operator.
Found the issue, need to use regex to filter out instead of equality operator.
Could you please open a PR with the fix. Thanks
Hi @tushar5526
While investigating another issue, I came across this problem, so I've created a PR https://github.com/containerd/nerdctl/pull/4309 for the fix. I apologize for missed this issue ... 🙇
Hi @haytok, no problem. I left some comments on your PR based on another approach I found to be working.
I think we can close this one.