DCA · Question #7
Which of the following are types of namespaces used by Docker to provide isolation? (Choose 2.)
The correct answer is B. Network C. Process ID. Docker utilizes Linux namespaces to provide isolation for containers, including separate environments for network and process IDs.
Question
Which of the following are types of namespaces used by Docker to provide isolation? (Choose 2.)
Options
- AHost
- BNetwork
- CProcess ID
- DAuthentication
- EStorage
How the community answered
(48 responses)- A6% (3)
- B90% (43)
- D2% (1)
- E2% (1)
Why each option
Docker utilizes Linux namespaces to provide isolation for containers, including separate environments for network and process IDs.
''Host'' is not a type of Linux namespace; rather, a container can be configured to share the host's namespaces, but ''Host'' itself is not a specific namespace type.
Network namespaces (`net`) isolate network interfaces, IP addresses, routing tables, and port ranges, ensuring each container has its own independent network stack.
Process ID namespaces (`pid`) provide process tree isolation, meaning processes inside a container only see other processes within that same container's namespace, not the host's or other containers'.
Authentication is a security mechanism, not a fundamental Linux namespace type used by Docker for isolation.
While storage is isolated, the specific Linux namespace type responsible for filesystem mount isolation is the Mount namespace (`mnt`), not generically ''Storage''.
Concept tested: Linux namespaces for container isolation
Source: https://man7.org/linux/man-pages/man7/namespaces.7.html
Topics
Community Discussion
No community discussion yet for this question.