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

BuildDockerTasks.prepare(): remove obsolete images (without any tag) #25

Closed
renskiy opened this issue Jun 15, 2016 · 2 comments
Closed

Comments

@renskiy
Copy link
Owner

renskiy commented Jun 15, 2016

maybe it should just execute this local command: docker images | sed 1d | grep '<none>' | awk '{print($3)}' | xargs docker rmi

@renskiy renskiy changed the title BuildDockerTasks.build(): remove obsolete images (without any tag) BuildDockerTasks.prepare(): remove obsolete images (without any tag) Jun 23, 2016
@renskiy
Copy link
Owner Author

renskiy commented Jun 26, 2016

Another way: docker rmi $(docker images --filter "dangling=true" --quiet)

@renskiy
Copy link
Owner Author

renskiy commented Jun 26, 2016

This should be done for DockerTasks too (infrastructure side)

renskiy added a commit that referenced this issue Jul 21, 2016
* remove obsolete images

* remove obsolte images after container update

* do not try remove obsolete images on the remote side
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant