Last active
August 29, 2015 14:16
-
-
Save phaustin/4a2da4387478cb057a2f to your computer and use it in GitHub Desktop.
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
| #https://github.com/ContinuumIO/docker-images/tree/master/miniconda | |
| docker pull continuumio/miniconda | |
| docker run -i -t continuumio/miniconda /bin/bash | |
| docker build -t phaustin/ssmi:v2 . | |
| docker run -v /Users/phil/dockerfiles:/data -i -t phaustin/ssmi:v2 /bin/bash | |
| docker pull phaustin/ssmi | |
| docker run -v /Users/phil/dockerfiles:/data -i -t phaustin/ssmi /bin/bash --login | |
| list all containers: | |
| docker ps -a | |
| list all images: | |
| docker images | |
| #remove all images and containers | |
| #!/bin/bash | |
| # Delete all containers | |
| docker rm $(docker ps -a -q) | |
| # Delete all images | |
| docker rmi $(docker images -q) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment