Last active
August 10, 2017 00:10
-
-
Save venkatmarepalli/588ef2e5e71e493e5ec98aeb2108bb13 to your computer and use it in GitHub Desktop.
Useful Docker 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
| #Getting into Docker Container Bash | |
| eb ssh | |
| docker ps | |
| docker exec -t -i <container-name> /bin/bash | |
| #List of repositories from local Registry | |
| curl http://localhost:5000/v2/_catalog | |
| #One liner to stop / remove all of Docker containers: | |
| docker stop $(docker ps -a -q) | |
| docker rm $(docker ps -a -q) | |
| #List all Dangling Images | |
| sudo docker images -q -f dangling=true | |
| #Remove images | |
| sudo docker rmi <image_name> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment