Skip to content
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

Support pruning all builder image (docker builder prune --all) #844

Closed
Korhm opened this issue May 2, 2024 · 1 comment · Fixed by #845
Closed

Support pruning all builder image (docker builder prune --all) #844

Korhm opened this issue May 2, 2024 · 1 comment · Fixed by #845
Labels
docker-plain plain Docker (no swarm, no compose, no stack) enhancement New feature or request

Comments

@Korhm
Copy link

Korhm commented May 2, 2024

SUMMARY

Support of --all for builder_cache (Remove all unused build cache, not just dangling ones)

ISSUE TYPE
  • Feature Idea
COMPONENT NAME

community.docker.docker_prune

ADDITIONAL INFORMATION

I would like to use this component to prune all builder cache, like the --all option in docker builder prune

- name: "Remove builder cache"
  community.docker.docker_prune:
    builder_cache: true
    builder_cache_all: true
  register: result
@felixfontein felixfontein added enhancement New feature or request docker-plain plain Docker (no swarm, no compose, no stack) labels May 2, 2024
@felixfontein
Copy link
Collaborator

I've implemented this (and a bit more) in #845.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docker-plain plain Docker (no swarm, no compose, no stack) enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants