summaryrefslogtreecommitdiff
path: root/docs/source/markdown/options/tty.md
blob: 04bd8af2ce491592a0d50912fd1b2d0b214eaa51 (plain)
1
2
3
4
5
6
7
8
9
#### **--tty**, **-t**

Allocate a pseudo-TTY. The default is **false**.

When set to **true**, Podman will allocate a pseudo-tty and attach to the standard
input of the container. This can be used, for example, to run a throwaway
interactive shell.

**NOTE**: The --tty flag prevents redirection of standard output.  It combines STDOUT and STDERR, it can insert control characters, and it can hang pipes. This option should only be used when run interactively in a terminal. When feeding input to Podman, use -i only, not -it.