ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 135 - DCA discussion

Report
Export

Is this a Linux kernel namespace that is disabled by default and must be enabled at Docker engine runtime to be used?

Solution. pid

A.

Yes

Answers
A.

Yes

B.

No

Answers
B.

No

Suggested answer: B

Explanation:

= The pid namespace is not a Linux kernel namespace that is disabled by default and must be enabled at Docker engine runtime to be used.The pid namespace is one of the six namespaces that are enabled by default when you run a container with Docker1.The pid namespace isolates the process ID number space, meaning that processes in different pid namespaces can have the same PID2.This allows containers to have their own init process with PID 1 and to limit the visibility and interaction of processes between containers and the host3. To disable the pid namespace, you need to use the --pid option with the docker run command and specify the host or another container as the pid mode.Reference:

Docker run reference | Docker Docs

pid_namespaces(7) - Linux manual page - man7.org

Building containers by hand: The PID namespace - Enable Sysadmin

[Share host and container processes with --pid | Docker Docs]

asked 08/11/2024
Nathan Davies
38 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first