Skip to content

Instantly share code, notes, and snippets.

View kmanwar89's full-sized avatar

Kadar Anwar kmanwar89

  • Durham, NC
View GitHub Profile
@kmanwar89
kmanwar89 / cheatsheet.md
Last active December 19, 2021 21:16
Docker Cheatsheet

About: I created a cheatsheet for my own reference as I'm learning about Docker. I found myself often looking up the same commands multiple times and thought to write it all down. Hopefully this helps others!

Information gathering

docker ps -a or docker container list - List all containers

docker ps -aq - List all container ID's

  • This command is useful because it can be called as a variable $(docker ps -aq) and fed into other commands (such as docker stop or docker rm

docker image list - List all docker images