Last active
October 19, 2017 05:33
-
-
Save jsbonso/5a5ef637a8d77ac092414b0210bf1f89 to your computer and use it in GitHub Desktop.
Docker Commands CheatSheet
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
-- Show all images | |
docker images -a | |
-- Show all containers | |
docker volume ls | |
-- Removes dangling/unused container | |
docker volume prune | |
-- Basically similar with (docker volume prune) command. | |
docker volume rm $(docker volume ls -qf dangling=true) | |
// Finds docker process and stops them | |
docker rmi $(docker images | grep "^<none>" | awk "{print $3}") | |
-- Stops all Docker images/container | |
docker stop $(docker ps -a -q) | |
-- Removes all Docker instances/ containers | |
docker rm $(docker ps -a -q) | |
docker rmi $(docker images -a -q) | |
docker-compose config --services | |
docker-compose up -d --no-deps --build. <service> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment