docker run -it <image>
Meaning: Combines -i
(interactive mode) and -t
(pseudo-TTY) to run an interactive terminal.
Usage: Allows you to interact with the container's terminal.
Example: docker run -it ubuntu bash
opens an interactive shell in an ubuntu
container.