Advanced Docker & Containers
Q85 / 100

What does "docker exec" rely on internally to enter a running container's namespaces, and how does this differ conceptually from starting a new container?

Correct! Well done.

Incorrect.

The correct answer is B) "docker exec" uses "setns" to join the existing namespaces (PID, network, mount, etc.) of an already-running container's init process, running a new process in that same isolated environment rather than creating a new one

B

Correct Answer

"docker exec" uses "setns" to join the existing namespaces (PID, network, mount, etc.) of an already-running container's init process, running a new process in that same isolated environment rather than creating a new one

Explanation

Unlike "docker run" which sets up new namespaces, "docker exec" enters the namespaces already established for the target container's init process, so the new process shares that container's filesystem, network, and process tree view.

Progress
85/100