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!
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 stopordocker rm
docker image list - List all docker images