1
0
mirror of https://github.com/docker/cli.git synced 2025-08-08 12:02:07 +03:00

Exec: Add ability to set environment variables

Keeping the current behavior for exec, i.e., inheriting
variables from main process. New variables will be added
to current ones. If there's already a variable with that
name it will be overwritten.

Example of usage: docker exec -it -e TERM=vt100 <container> top

Closes #24355.

Signed-off-by: Jonh Wendell <jonh.wendell@redhat.com>
This commit is contained in:
Jonh Wendell
2016-07-13 14:24:41 -03:00
committed by Tibor Vass
parent 38d93769fe
commit 73dd34b2b3
4 changed files with 10 additions and 1 deletions

View File

@@ -14,6 +14,7 @@ Run a command in a running container
Options:
-d, --detach Detached mode: run command in the background
--detach-keys Override the key sequence for detaching a container
-e, --env=[] Set environment variables
--help Print usage
-i, --interactive Keep STDIN open even if not attached
--privileged Give extended privileges to the command