Skip to content

Commit bca8a17

Browse files
authored
Suggestion to add information about environment
Signed-off-by: Benjamin Balder Bach <[email protected]>
1 parent e42673d commit bca8a17

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
@@ -24,3 +24,6 @@ This is the equivalent of `docker exec` targeting a Compose service.
2424

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

0 commit comments

Comments
 (0)