Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/bin/bash
# delete files occupied by the finished containers
sudo docker rm $(sudo docker ps -a | grep Exit| cut -f1 -d' ')
# delete dangling images
sudo docker rmi $(sudo docker images -f "dangling=true" -q)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.