Skip to content

Instantly share code, notes, and snippets.

@venkatmarepalli
Last active August 10, 2017 00:10
Show Gist options
  • Select an option

  • Save venkatmarepalli/588ef2e5e71e493e5ec98aeb2108bb13 to your computer and use it in GitHub Desktop.

Select an option

Save venkatmarepalli/588ef2e5e71e493e5ec98aeb2108bb13 to your computer and use it in GitHub Desktop.
Useful Docker Commands
#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