Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Docker DCA Exam - Topic 5 Question 124 Discussion

Posted by Mary on Apr 07, 2026 at 12:09 PM

Which docker run` flag lifts cgroup limitations?

Suggested Answer: A

The --privileged flag lifts all the cgroup limitations for a container, as well as other security restrictions imposed by the Docker daemon1. This gives the container full access to the host's devices, resources, and capabilities, as if it was running directly on the host2. This can be useful for certain use cases that require elevated privileges, such as running Docker-in-Docker or debugging system issues3. However, using the --privileged flag also poses a security risk, as it exposes the host to potential attacks or damages from the container4. Therefore, it is not recommended to use the --privileged flag unless absolutely necessary, and only with trusted images and containers.

The other options are not correct because they do not lift all the cgroup limitations for a container, but only affect specific aspects of the container's resource allocation or isolation:

*The --cpu-period flag sets the CPU CFS (Completely Fair Scheduler) period for a container, which is the length of a CPU cycle in microseconds. This flag can be used in conjunction with the --cpu-quota flag to limit the CPU time allocated to a container. However, this flag does not affect other cgroup limitations, such as memory, disk, or network.

*The --isolation flag sets the isolation technology for a container, which is the mechanism that separates the container from the host or other containers. This flag is only available on Windows containers, and can be used to choose between process, hyperv, or process-isolated modes. However, this flag does not affect the cgroup limitations for a container, but only the level of isolation from the host or other containers.

*The --cap-drop flag drops one or more Linux capabilities for a container, which are the privileges that a process can use to perform certain actions on the system. This flag can be used to reduce the attack surface of a container by removing unnecessary or dangerous capabilities. However, this flag does not affect the cgroup limitations for a container, but only the capabilities granted to the container by the Docker daemon.


*Runtime privilege and Linux capabilities

*Docker Security: Using Containers Safely in Production

*Docker run reference

*Docker Security: Are Your Containers Tightly Secured to the Ship? SlideShare

*[Secure Engine]

*[Configure a Pod to Use a Limited Amount of CPU]

*[Limit a container's resources]

*[Managing Container Resources]

*[Isolation modes]

*[Windows Container Isolation Modes]

*[Windows Container Version Compatibility]

*[Docker and Linux Containers]

*[Docker Security Cheat Sheet]

*[Docker Security: Using Containers Safely in Production]

Get Premium DCA Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
20 comments · newest first
SA
Sarina 1 month ago
I feel confident about A too. It’s a common flag we use.
NI
Nicolette 1 month ago
A is definitely the right choice. It’s straightforward.
BA
Barabara 2 months ago
B is more about CPU limits, not lifting them.
JE
Jesusa 2 months ago
I’m not so sure. What about B) `docker run -cpu-period`?
MA
Margurite 2 months ago
Yeah, I agree with you. It gives full access to the host.
OL
Olive 2 months ago
I think it's A) `docker run -privileged`. It lifts all cgroup limits.
LO
Lorrie 2 months ago
I just learned about cgroups, this is wild!
SO
Soledad 2 months ago
Wait, are you sure about that? Sounds too broad.
ME
Melodie 3 months ago
I thought `-isolation` was the key, but I guess not.
PA
Paola 3 months ago
Totally agree, `-privileged` gives full access!
FR
Frederic 3 months ago
A) `docker run -privileged` is the one that lifts cgroup limits.
JO
Johnson 3 months ago
Yeah, A) is the go-to for that!
MA
Marquetta 3 months ago
Wait, are you sure about that? Sounds too broad.
LA
Lashawnda 4 months ago
Definitely A) - it lifts all cgroup limits.
DO
Dominga 5 months ago
I thought it was B) `docker run -cpu-period`?
MO
Mollie 5 months ago
A) `docker run -privileged` is the right one!
VI
Vicki 6 months ago
I feel like `-isolation` is more about the environment the container runs in, not really about cgroup limitations.
CA
Carlene 6 months ago
I’m a bit confused about `-cpu-period` and how it relates to cgroups. I think it sets CPU limits rather than lifting them?
JE
Jeannetta 6 months ago
I remember practicing a question about Docker flags, and `-privileged` was definitely mentioned as a way to give containers more access.
AL
Alberto 6 months ago
I think the `-privileged` flag is the one that lifts cgroup limitations, but I’m not entirely sure.
0/2000 characters

Save Cancel