From 72b91eb87f7a9c8e637f337e078b4adab4198f33 Mon Sep 17 00:00:00 2001 From: TomSweeneyRedHat Date: Thu, 14 Feb 2019 17:12:16 -0500 Subject: Second chunk of Cobra help Signed-off-by: TomSweeneyRedHat Adds examples to Cobra help for a second chunk of commands. Signed-off-by: TomSweeneyRedHat --- docs/podman-exec.1.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'docs') diff --git a/docs/podman-exec.1.md b/docs/podman-exec.1.md index 77317b0ca..6f464a8f2 100644 --- a/docs/podman-exec.1.md +++ b/docs/podman-exec.1.md @@ -4,7 +4,7 @@ podman\-exec - Execute a command in a running container ## SYNOPSIS -**podman exec** *container* [*options*] [*command* [*arg* ...]] +**podman exec** [*options*] *container* [*command* [*arg* ...]] ## DESCRIPTION **podman exec** executes a command in a running container. @@ -46,6 +46,12 @@ The default working directory for running binaries within a container is the roo The image developer can set a different default with the WORKDIR instruction, which can be overridden when creating the container. +## EXAMPLES + +$ podman exec -it ctrID ls +$ podman exec -it -w /tmp myCtr pwd +$ podman exec --user root ctrID ls + ## SEE ALSO podman(1), podman-run(1) -- cgit v1.2.3-54-g00ecf