Created
March 19, 2024 19:29
-
-
Save danuw/fd49031d13b62c20507c26724c9bad9e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# stop and delete containers from a given image | |
docker rm $(docker stop $(docker ps -a -q --filter ancestor=my-python-app)) | |
# delete dangling images | |
docker rmi $(docker images -f "dangling=true" -q) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment