-
Removing all images is
#!/bin/bash $ docker ps -q -a | xargs docker rm -f
-
Removing all containers
#!/bin/bash # Delete all dangling (unused) images docker rmi $( docker images -f dangling=true -q )
-
Remove volumes
#!/bin/bash docker volume rm $(docker volume ls -qf dangling=true)
Last active
February 15, 2018 20:27
-
-
Save felipe3dfx/18346f57d0a712515e9b95cb1f26d0f1 to your computer and use it in GitHub Desktop.
How to remove unused Docker containers and images
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment