From 10af4485481312ff4b5389af69773bbda7ddda0b Mon Sep 17 00:00:00 2001 From: Daniel J Walsh Date: Sat, 17 Feb 2024 13:36:23 -0500 Subject: [PATCH] Fix up example description of podman-exec.1.md.in Signed-off-by: Daniel J Walsh --- docs/source/markdown/podman-exec.1.md.in | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/source/markdown/podman-exec.1.md.in b/docs/source/markdown/podman-exec.1.md.in index d1cdb7a905..d76185a4e3 100644 --- a/docs/source/markdown/podman-exec.1.md.in +++ b/docs/source/markdown/podman-exec.1.md.in @@ -69,9 +69,18 @@ non-zero code, the exit codes follow the `chroot` standard, see below: ## EXAMPLES +Execute command in selected container with a stdin and a tty allocated: ``` $ podman exec -it ctrID ls +``` + +Execute command with the overridden working directory in selected container with a stdin and a tty allocated: +``` $ podman exec -it -w /tmp myCtr pwd +``` + +Execute command as the specified user in selected container: +``` $ podman exec --user root ctrID ls ```