-
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
Docker API incompatibility for "volume prune": "until" is an invalid volume filter #10579
Comments
Any chance you can try with 3.2.0? I know that @jmguzik has been doing a lot of work on filters for prune, so it's possible he's implemented this already. |
@w4tsn @mheon Docker does not support prune until filter for volume. Please refer to: EDIT: cli supports it so this is a strange situation. Support is undocumented thus missed in podman. |
We do store volume create time, so this ought to be possible. |
If so I can assign to this one to do it in end of this- next week. |
You got it. |
As stated in containers#10579 docker silently implements until filter for volume prune. This commit adds initial support to the HTTP API, both libpod and compat. It enables further work on that issue, such as adding cli support in the future. Signed-off-by: Jakub Guzik <[email protected]>
A friendly reminder that this issue had no activity for 30 days. |
@jmguzik Any progress? |
In progress. Fighting with one thing, but in http api it's done. |
This commit follows work started in containers#10756. Changes made in containers#11015 enabled cli support for volume prune --filter until. Adding e2e test closes containers#10579. Signed-off-by: Jakub Guzik <[email protected]>
/kind bug
Description
The docker API supports the
until
filter in volume prunes. This is not stated in the official documentation, interestingly enough, but I'm using this flag on the docker cli client without problems. E.g.until=24h
.Steps to reproduce the issue:
Run `podman volume prune --filter until="24h"
Describe the results you received:
Got an error message from the "docker" API socket
Describe the results you expected:
Compatibility of the "until" filter for volume prune, as it is supported by docker - if wider docker API compatibility is desired here.
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)
I did not test with the latest version of podman, but I consulted the guides.
The text was updated successfully, but these errors were encountered: