foreground mode
Running a container with its output connected to your terminal until it exits.
In more detail
This is the default for docker run. You see output as it happens and Ctrl+C sends an interrupt signal. docker start -a attaches to an existing container the same way.
Related terms
- detached mode — Running a container in the background so your terminal is free straight away.
- interactive terminal — The -it flags that connect your keyboard to a container and give it a terminal, so you can use a shell inside it.
- signal — A short notification the kernel delivers to a process, such as please stop or stop now.
Taught in
- Run, Stop, Restart And Remove A Container — Docker Architecture & Production Containers