Last active
August 29, 2015 14:20
-
-
Save simkimsia/ce5d63dd682957cbb339 to your computer and use it in GitHub Desktop.
useful bash commands for docker
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
| #remove all containers | |
| docker rm $(docker kill $(docker ps -a -q)) | |
| docker rmi image_id #where image_id is the id of the specific image you want to remove | |
| docker ps -a # Lists all containers | |
| docker build -t django18-python27-ubuntu1404 . ## build docker reponame dockerfilepath | |
| docker run -ti django18-python27-ubuntu1404 sh ## run the docker and go in |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment