Courseiva
hardMultiple ChoiceObjective-mapped

XK0-006 Practice Question: An administrator configures Docker as shown in…

Network Topology
$ docker infoformat '{{.CgroupDriver}}'$ docker run -dname app1 nginxRefer to the exhibit.$ cat /etc/docker/daemon.json"exec-opts": ["native.cgroupdriver=systemd"],"log-driver": "json-file","log-opts": {"max-size": "10m","max-file": "3"},"storage-driver": "overlay2"cgroupfs...

An administrator configures Docker as shown in the exhibit. After starting a container, the warning about the 'user' directive appears. What is the most likely cause?

⚠ Common exam trap

CompTIA often tests the subtle distinction between a configuration mismatch warning and an actual runtime failure, leading candidates to misinterpret the warning as a functional error in nginx or storage compatibility.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

The cgroup driver configured in daemon.json does not match the actual driver in use.

The warning about the 'user' directive indicates a mismatch between the cgroup driver configured in Docker's daemon.json and the cgroup driver actually in use by the system (e.g., systemd vs. cgroupfs). Docker expects the configured driver to match the system's init system; when they differ, Docker emits warnings because cgroup management may behave inconsistently, affecting resource limits and container isolation.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • The storage driver overlay2 is not compatible with the systemd cgroup driver.

    Why it's wrong here

    overlay2 is compatible.

  • The cgroup driver configured in daemon.json does not match the actual driver in use.

    Why this is correct

    The daemon.json specifies systemd, but docker info shows cgroupfs, indicating a mismatch.

  • The container is running with reduced privileges, and nginx cannot use the 'user' directive.

    Why it's wrong here

    This is a symptom, not the root cause.

  • The log driver configuration is causing nginx to log warnings.

    Why it's wrong here

    Log driver settings do not affect nginx behavior.

About these practice questions

One of 979 original XK0-006 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This XK0-006 practice question is part of Courseiva's free CompTIA certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the XK0-006 exam.