-
Notifications
You must be signed in to change notification settings - Fork 122
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
docker_prune: filter "until" seems without effect #591
Comments
From the code it looks like these filters are passed to the Docker daemon. I guess this needs to be debugged in more detail... |
For information tested with: Docker version 20.10.5 Manual command works well docker image prune -a --filter "until=8760h"
|
Hmm, but in that command you are pruning images, not containers? Your ansible task is pruning containers, but not images. |
Yes sorry, bad copy paste
But I'm wrong, the issue is not related with "until"
Doesn't works -> "No change" in ansible Unused images
Another test, create an unused network
Same no change, but the network is well removed
Maybe I missed something ? |
Actually the module always returns |
#593 should fix this. |
Still my images aren't removed, with until or not It works with "network" |
Were your images untagged, or did you provide the |
Sorry for the delay Yes your are right about dangling, thank you, and with #593 all works well |
I discovered the issue when I tried to purge several docker images
Old unused images
Ansible debug
I tried with 860h without more success, the result is always no change
Version: community.docker 3.4.0
The text was updated successfully, but these errors were encountered: