This is a cheat sheet for Docker commands and Docker workflows.
- See running containers:
docker ps- Run a Docker container with Docker Compose and get a shell inside that:
docker-compose -f <docker-compose-file-name> run --rm <service-name> sh- Get a shell inside a running Docker container:
docker exec -it <container_name_or_id> sh- Build a Docker service with Docker Compose and see which stage it is in:
docker compose build <service_name> --progress=plain