Joe's
Digital Garden

Docker Cheatsheet

Docker Options

docker ps           Displays all running containers, names, and ports
docker exec -it     Start interactive shell in container
    e.g. docker exec -it <container_name> /usr/bin/zsh
docker build        Build the image specified in the docker file
docker images       List downloaded images

Docker Compose

build   Build containers specified by config
config  Validate the config
up      Build, creates, starts, and attaches to a service
down    Stops, removes containers, networks, volumes and images of up
rm      Removes stopped containers
restart Restarts all stopped and running containers

Linked References