Last active
February 2, 2021 22:55
-
-
Save sneycampos/84896dfaf37d7c415cecdb866cdecadd to your computer and use it in GitHub Desktop.
Docker useful commands
This file contains 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
## Docker | |
Find the container: docker ps -a | |
Delete container: docker rm -v <container_name> | |
List all images: docker image ls | |
Delete image by tag: docker image rmi _tag_ --force | |
Remove unused images: docker image prune --all --force | |
See space used by docker: docker system df | |
Remove dangling images: docker rmi $(docker images -f "dangling=true" -q) --force |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment