Docker and CI/CD · Junior · Question 36 of 75
What do the -it flags give you?
- 1An isolated network that the host cannot reach
- 2Immutable tags that cannot be overwritten later
- ✓Correct answer: An interactive terminal: stdin kept open plus a TTY
Explanation
-i keeps stdin open and -t allocates a pseudo-terminal, which shells and REPLs need. Scripts in CI usually don't need either.