Skip to content

Instantly share code, notes, and snippets.

@4383
Last active July 5, 2018 13:28
Show Gist options
  • Save 4383/4b796da5f63702d9eb1e6056f916084b to your computer and use it in GitHub Desktop.
Save 4383/4b796da5f63702d9eb1e6056f916084b to your computer and use it in GitHub Desktop.
docker tips and tricks
# remove all container by ID
for el in $(docker ps -a --format "{{.ID}}"); do docker rm $el; done
# remove all images by ID
for el in $(docker images --format "{{.ID}}"); do docker rmi $el; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment