mirror of https://github.com/containers/podman.git
Fix up example description of podman-exec.1.md.in
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
parent
fbb4d5dca6
commit
10af448548
|
|
@ -69,9 +69,18 @@ non-zero code, the exit codes follow the `chroot` standard, see below:
|
||||||
|
|
||||||
## EXAMPLES
|
## EXAMPLES
|
||||||
|
|
||||||
|
Execute command in selected container with a stdin and a tty allocated:
|
||||||
```
|
```
|
||||||
$ podman exec -it ctrID ls
|
$ 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
|
$ podman exec -it -w /tmp myCtr pwd
|
||||||
|
```
|
||||||
|
|
||||||
|
Execute command as the specified user in selected container:
|
||||||
|
```
|
||||||
$ podman exec --user root ctrID ls
|
$ podman exec --user root ctrID ls
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue