Last active
April 18, 2016 02:32
-
-
Save coolnalu/1d13f6968647aa8e309c3103e78a545c to your computer and use it in GitHub Desktop.
Docker 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
# List docker images/containers | |
docker images | |
docker ps | |
docker ps -a (include stopped containers) | |
# Remove docker images/containers | |
docker rmi image-sha | |
docker rm container-sha | |
# SSH into container | |
docker exec -it container-sha bash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment