Docker/Docker compose cheatsheet

My most often forgotten docker commands

A list of Docker commands I can refer to for future use.


Show docker containers (including ids)

docker ps

Enter docker container

docker exec -it <container name>

Docker Compose

docker-compose up -d 

-d is detached mode, for running containers in the background.

Building a docker image

docker-compose build service_name