Skip to content

Commit c85da32

Browse files
benjaomingndeloof
authored andcommitted
Suggestion to add information about environment
Signed-off-by: Benjamin Balder Bach <[email protected]>
1 parent 799ab84 commit c85da32

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docs/reference/compose_exec.md

+3
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,6 @@ This is the equivalent of `docker exec` targeting a Compose service.
2828

2929
With this subcommand, you can run arbitrary commands in your services. Commands allocate a TTY by default, so
3030
you can use a command such as `docker compose exec web sh` to get an interactive prompt.
31+
32+
Environment from existing configuration is applied.
33+
You can for instance introspect your environment by running `docker-compose exec web "/usr/bin/env"`.

0 commit comments

Comments
 (0)