CmdID

CmdID / docker / docker compose

docker compose exec

This is the equivalent of docker exec targeting a Compose service. Docker Compose reference

8 options Its page in the Docker Compose reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Options

8 in the Docker Compose reference
--detach, -dDetached mode: Run command in the background
--dry-runExecute command in dry run mode
--env, -eSet environment variables
--indexIndex of the container if service has multiple replicas
--no-tty, -TDisable pseudo-TTY allocation.
--privilegedGive extended privileges to the process
--user, -uRun the command as this user
--workdir, -wPath to workdir directory for this command