Skip to content

Instantly share code, notes, and snippets.

@pedrotcaraujo
Last active June 23, 2020 10:24
Show Gist options
  • Save pedrotcaraujo/a58da5d5f450838bf2e8f5fc323799fd to your computer and use it in GitHub Desktop.
Save pedrotcaraujo/a58da5d5f450838bf2e8f5fc323799fd to your computer and use it in GitHub Desktop.

Docker Commands

Container logs

docker logs [container] -f

List all containers (only IDs)

docker ps -aq

Stop all running containers

docker stop $(docker ps -aq)

Remove all containers

docker rm $(docker ps -aq)

Remove all images

docker rmi $(docker images -q)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment