Last active
March 27, 2017 09:00
-
-
Save mandymozart/35e536c80863864ef1fbb87d1ea44164 to your computer and use it in GitHub Desktop.
docker common CLI commands
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 all containers | |
docker stop $(docker ps -a -q) | |
# Remove all containers | |
docker rm $(docker ps -a -q) | |
# Remove all images | |
docker rmi $(docker images -q) | |
# Any running containers | |
docker ps -a | |
docker images | |
# For use with docker-compose.yml | |
docker-compose up -d | |
# For Docker Hub | |
docker login -e <email> -p <pwd> -u <user> | |
docker push <organization/user>/<reponame> | |
docker commit <containerInstance> <organization/user>/<reponame>[:TAG] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment