Docker Fundamentals - Container Lifecycle

Interacting with Containers


Interacting with Containers

Starting a container with the -i flag will show no prompt, but allow you to enter commands and return output.

The -t flag on its own shows a prompt but will not execute commands. It is responsible for creating the prompt and positioning your cursor.

It is good practice to use both flags.