Skip to content

Instantly share code, notes, and snippets.

@YordanGeorgiev
Last active March 28, 2019 14:29
Show Gist options
  • Save YordanGeorgiev/3fb705877aa6a57ec07da09b6a236075 to your computer and use it in GitHub Desktop.
Save YordanGeorgiev/3fb705877aa6a57ec07da09b6a236075 to your computer and use it in GitHub Desktop.
[docker-cheat-sheet.sh] docker cheat-sheet #docker #cheat-sheet
# 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