-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
podman network prune is missing #8673
Comments
Podman does not store any network information inside the db. Users can add their own cni configs directly to this directory and don't have to use |
Good point. Theoretically it would look through all of it's containers and see if any use the network, and then if not remove the networks that were created. We could also do something with labels to indicate that podman created the file. And only remove files created with podman. Didn't you do something similar? Bottom line is it is probably to dangerous, and maybe we should just document in podman network why there is no prune command and explain to users how to remove unused networks. |
For future networks we could definitely add some key/label to the the config file to indicate that we are allowed to remove this file. I added a TODO comment for a dangling filter for |
A friendly reminder that this issue had no activity for 30 days. |
add the ability to prune unused cni networks. filters are not implemented but included both compat and podman api endpoints. Fixes :containers#8673 Signed-off-by: baude <[email protected]>
network prune is merged. |
This is an enhancement for the podman system prune feature. In this issue, it is mentioned that 'network prune' should be wired into 'podman system prune' containers#8673 Therefore, I add the function to remove unused networks. Signed-off-by: Toshiki Sonoda <[email protected]>
Docker has a network prune, so podman should as well.
Once network prune is added, it should also be wired into podman system prune.
The text was updated successfully, but these errors were encountered: