Last active
March 28, 2019 14:29
-
-
Save YordanGeorgiev/3fb705877aa6a57ec07da09b6a236075 to your computer and use it in GitHub Desktop.
[docker-cheat-sheet.sh] docker cheat-sheet #docker #cheat-sheet
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
# create a docker image in the current directory from the Dockerfile in it | |
docker build --tag=the-tag . | |
# list all the images | |
docker images -a | |
# remove all the images | |
docker rmi $(docker images -q) | |
# remove all the containers | |
docker rm $(docker ps -a -q) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment