Docker Compose exec: get an interactive shell
Open a shell in a running Compose service with docker compose exec, and use docker compose run for a new container when the service is stopped.
Filtering by topic #debugging · clear
Open a shell in a running Compose service with docker compose exec, and use docker compose run for a new container when the service is stopped.
At default verbosity a command task shows only ok or changed. Run with -v or use register and debug to see its output, and keep secrets out of logs.
ENTRYPOINT is what runs and command supplies its arguments. See all four override combinations in Compose, and why setting entrypoint clears CMD.