Detached and interactive mode: -d, -i and -t
Select an icon to see what it is.
Step 4 of 6
Keystrokes travel to PID 1
Each key you press goes from your terminal through the CLI and dockerd into the container's pseudo-terminal. The shell, which is PID 1, reads it and writes its reply back along the same path. The terminal driver does the echoing, so your typing appears on screen.
Path of the input
your keyboard -> docker CLI -> dockerd -> container's pseudo-terminal -> sh (PID 1)