File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -6,10 +6,10 @@ This is the equivalent of `docker exec` targeting a Compose service.
66With this subcommand, you can run arbitrary commands in your services. Commands allocate a TTY by default, so
77you can use a command such as ` docker compose exec web sh ` to get an interactive prompt.
88
9- By default, Compose will enter container in interactive mode and allocate a TTY, while the equivalent ` docker exec `
10- command requires passing ` --interactive --tty ` flags to get the same behavior. Compose also support those two flags
11- to offer a smooth migration between commands, whenever they are no-op by default. Still, ` interactive ` can be used to
12- force disabling interactive mode (` --interactive=false ` ), typically when ` docker compose exec ` command is used inside
9+ By default, Compose will enter a container in interactive mode and allocate a TTY, while the equivalent ` docker exec `
10+ command requires passing ` --interactive --tty ` flags to get the same behavior. Compose also supports these two flags
11+ to allow a smooth migration between commands, even when they are no-op by default. ` interactive ` can still be used to
12+ disable interactive mode (` --interactive=false ` ), typically when ` docker compose exec ` command is used inside
1313a script.
1414
1515### Options
You can’t perform that action at this time.
0 commit comments