Beginner Docker & Containers
Q18 / 100

What does "docker exec -it <container> bash" do?

Correct! Well done.

Incorrect.

The correct answer is B) Opens an interactive bash shell inside an already-running container

B

Correct Answer

Opens an interactive bash shell inside an already-running container

Explanation

"docker exec" runs an additional command inside a running container; "-it" allocates an interactive terminal, commonly used to open a shell for debugging.

Progress
18/100