Skip to content

Commit

Permalink
Suggestion to add information about environment
Browse files Browse the repository at this point in the history
Signed-off-by: Benjamin Balder Bach <[email protected]>
  • Loading branch information
benjaoming authored and ndeloof committed Nov 12, 2024
1 parent 799ab84 commit c85da32
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/reference/compose_exec.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,6 @@ This is the equivalent of `docker exec` targeting a Compose service.

With this subcommand, you can run arbitrary commands in your services. Commands allocate a TTY by default, so
you can use a command such as `docker compose exec web sh` to get an interactive prompt.

Environment from existing configuration is applied.
You can for instance introspect your environment by running `docker-compose exec web "/usr/bin/env"`.

0 comments on commit c85da32

Please sign in to comment.