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

How to delete failed builds? #231

Open
markgraf opened this issue Aug 14, 2020 · 3 comments
Open

How to delete failed builds? #231

markgraf opened this issue Aug 14, 2020 · 3 comments
Labels
enhancement New feature or request

Comments

@markgraf
Copy link

I've aquired quite a few failed builds, but I can't find how to remove them anywhere in the documentation.

So far I've tried:

for item in $(sudo ansible-bender list-builds | grep failed | awk '{ print $2}') ; do sudo buildah rmi $item ; done
sudo podman images | grep none | awk '{print $3}' | xargs sudo podman rmi
sudo ansible-bender clean

But that seems to leave some of the failed builds lying around.

What am I missing?

@TomasTomecek TomasTomecek added the enhancement New feature or request label Sep 25, 2020
@TomasTomecek
Copy link
Collaborator

Hi, sorry for a late reply.

Yes, there is no command to purge failed builds, would be a great addition.

What you are doing is the best thing to do. I'd be interested in what failed builds are lingering after running those 3 commands.

@markgraf
Copy link
Author

I can't really tell anymore. I think it was a couple of this type here:

$ docker images
REPOSITORY                                     TAG                 IMAGE ID            CREATED             SIZE
<none>                                         <none>              a9bb55835616        2 weeks ago         932MB

But I got rid of those through "portainer". Good enough as a workaround :-)

@optica-phoffmann
Copy link

@markgraf

Instead of sudo podman images | grep none | awk '{print $3}' | xargs sudo podman rmi, you can use podman system prune

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants