Docker Compose exec: get an interactive shell
Open a shell in a running Compose service with docker compose exec, and use run --rm for a service that is stopped or must not be disturbed.
Filtering by topic #debugging · clear
Open a shell in a running Compose service with docker compose exec, and use run --rm for a service that is stopped or must not be disturbed.
ENTRYPOINT is what runs and command supplies its arguments. See all four override combinations in Compose, and why setting entrypoint clears CMD.