Skip to content

Instantly share code, notes, and snippets.

@simkimsia
Last active August 29, 2015 14:20
Show Gist options
  • Select an option

  • Save simkimsia/ce5d63dd682957cbb339 to your computer and use it in GitHub Desktop.

Select an option

Save simkimsia/ce5d63dd682957cbb339 to your computer and use it in GitHub Desktop.
useful bash commands for docker
#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