podman-exec(1) General Commands Manual podman-exec(1) (NAME) podman-exec - (SYNOPSIS) podman exec [] [ ...] podman container exec [] [ ...] (DESCRIPTION) podman exec . (OPTIONS) --cidfile=file (ID) file . --detach, -d exec . exec . podman exec exec . --detach-keys=sequence . [a-Z] ctrl- : a-z @ ^ [ , _. "" . ctrl-p,ctrl-q . containers.conf(5) . --env, -e=env . . Podman . * Podman . --env-file=file . --interactive, -i true (stdin) . false . (attached) (stdin) (pipe) . (detached) stdin (block) . : Podman stdin . --latest, -l . : Podman . ( Podman Mac Windows ( WSL2) ) --no-session exec . exec podman . --preserve-fd=FD1[,FD2,...] (file descriptors) . . OCI crun . OCI . ( Podman Mac Windows ( WSL2) ) --preserve-fds=N N ( 0 1 2) . FD 3+N . ( Podman Mac Windows ( WSL2) ) --privileged . false . Podman (=false) . . << >> (privileged) (/dev/tty\d+) systemd (--systemd=always). . (dropped capabilities) Apparmor/SELinux Seccomp . privileged . (user namespace) ( rootless) . --tty, -t (pseudo-TTY) . false . true Podman pseudo-tty . . : --tty . STDOUT STDERR (pipes) . . Podman -i -it. --user, -u=user[:group] UID GID . user group . . root USER Containerfile (override) . (user namespace) UID GID . UID GID UID GID . (rootless) root UID GID Podman . --workdir, -w=dir . (/) . WORKDIR . () -w . (EXIT STATUS) podman exec . podman exec chroot : 125 Podman $ podman exec --foo ctrID /bin/sh; echo $? Error: unknown flag: --foo 125 126 $ podman exec ctrID /etc; echo $? Error: container_linux.go:346: starting container process caused "exec: \"/etc\": permission denied": OCI runtime error 126 127 $ podman exec ctrID foo; echo $? Error: container_linux.go:346: starting container process caused "exec: \"foo\": executable file not found in $PATH": OCI runtime error 127 Exit code $ podman exec ctrID /bin/sh -c 'exit 3'; echo $? 3 (EXAMPLES) stdin tty: $ podman exec -it ctrID ls stdin tty: $ podman exec -it -w /tmp myCtr pwd : $ podman exec --user root ctrID ls exec : $ podman exec -d ctrID find /path/to/search -name yourfile (SEE ALSO) podman(1), podman-run(1) (HISTORY) Brent Baude bbaude@redhat.com podman-exec(1)