My current understanding about what happens when we attach a container to a terminal is that the STD IN/OUT/ERR of the current terminal is connected to the STD IN/OUT/ERR of the startup command process (PID 1) of the container. Running the container interactively using -i flag also seem to do something similar. Whats the difference here?
Also from what I have tested, attaching a busybox container (with the default startup command sh itself) doesn't give the shell prompt while running it interactively is giving the shell prompt. How can we explain this?
Subscribe to get latest updates