Docker Cheatsheet

This is a simple reference so I can remember commands and tips since I don’t use docker a lot right now.

Docker commands

# list images
docker images
 
# show running containers
docker ps

Tips

  • Use special DNS name host.docker.internal to have a container connect to the host https://docs.docker.com/desktop/networking/#i-want-to-connect-from-a-container-to-a-service-on-the-host