Skip to content

Instantly share code, notes, and snippets.

@sneycampos
Last active February 2, 2021 22:55
Show Gist options
  • Save sneycampos/84896dfaf37d7c415cecdb866cdecadd to your computer and use it in GitHub Desktop.
Save sneycampos/84896dfaf37d7c415cecdb866cdecadd to your computer and use it in GitHub Desktop.
Docker useful commands
## Docker
Find the container: docker ps -a
Delete container: docker rm -v <container_name>
List all images: docker image ls
Delete image by tag: docker image rmi _tag_ --force
Remove unused images: docker image prune --all --force
See space used by docker: docker system df
Remove dangling images: docker rmi $(docker images -f "dangling=true" -q) --force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment