hardMultiple ChoiceObjective-mapped
XK0-006 Practice Question: An administrator configures Docker as shown in…
Network Topology
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.
Go deeper
Related to this question
Learn chapter
Installing Linux and Package Management
Key term
systemd
systemd is a system and service manager for Linux operating systems that initializes and manages processes, services, and system resources after the kernel boots.
Key term
Init system
An init system is the first process started by the Linux kernel during boot that manages all other processes, services, and system initialization until shutdown.
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 →
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.