Câu hỏi phỏng vấn Docker
Câu hỏi

What are the different kinds of na...

Câu trả lời

In Docker, namespaces are a fundamental feature of the Linux kernel that provide isolation for containers. When a container is launched, Docker creates a set of namespaces for that container, each responsible for isolating a different aspect of the system. Here are the different kinds of namespaces available in a container:

  1. PID Namespace: Isolates the process ID number space, meaning processes in different PID namespaces can have the same PID. This allows containers to have their own set of process IDs, independent of the host and other containers[2][3][5].

  2. Network Namespace: Manages network interfaces, providing each container with its own network stack, including IP addresses, routing tables, and network devices. This ensures that network configurations in one container do not affect others[1][3][5].

  3. Mount Namespace: Isolates the set of filesystem mount points seen by a group of processes. This allows containers to have their own view of the filesystem, separate from the host and other containers[2][3][6].

  4. UTS Namespace: Isolates hostname and domain name information, allowing containers to have their own hostname and domain name, independent of the host system[2][3][5].

  5. IPC Namespace: Isolates inter-process communication resources, such as System V IPC and POSIX message queues, ensuring that IPC mechanisms in one container do not interfere with those in another[2][3][5].

  6. User Namespace: Isolates security-related identifiers, such as user IDs and group IDs. This allows contain...

senior

senior

Gợi ý câu hỏi phỏng vấn

senior

What is the difference between Docker RUN, CMD and ENTRYPOINT?

entry

What is Docker?

middle

What is the difference between “expose” and “publish” in Docker?

Bình luận

Chưa có bình luận nào

Chưa có bình luận nào