Fix up example description of podman-exec.1.md.in

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
Daniel J Walsh 2024-02-17 13:36:23 -05:00
parent fbb4d5dca6
commit 10af448548
No known key found for this signature in database
GPG Key ID: A2DF901DABE2C028
1 changed files with 9 additions and 0 deletions

View File

@ -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
```