Interactive Terminal

Difficulty: Beginner

Question

What do the '-i' and '-t' flags do in 'docker run -it'?

Answer

`-i` (interactive) keeps STDIN open; `-t` (tty) allocates a pseudo-TTY (terminal).

Concepts covered

CLI, Terminal