Add -u|--user flag to docker exec for running command as a different user

Signed-off-by: Lei Jitang <leijitang@huawei.com>
This commit is contained in:
Lei Jitang
2015-04-11 11:04:24 +08:00
parent 5c3b228b61
commit 2cce4791b0
7 changed files with 46 additions and 7 deletions
@@ -1115,6 +1115,7 @@ You'll need two shells for this example.
-d, --detach=false Detached mode: run command in the background
-i, --interactive=false Keep STDIN open even if not attached
-t, --tty=false Allocate a pseudo-TTY
-u, --user= Username or UID (format: <name|uid>[:<group|gid>])
The `docker exec` command runs a new command in a running container.