
CompTIALinux+
Domain 2Objective 6
Containers XK0-006 Practice Questions (Page 4)
Part of the Services and User Management domain, which accounts for 20% of the XK0-006 exam. CompTIA does not publish an official question count, but from its 90-minute exam (~35–60 total, ~7–12 in this domain), expect 1–2 from this objective — we provide 22 practice questions to prepare you well beyond it. (estimate)
22questions here
5free pages
5concepts
20%of the exam
Questions 16–20
- 16
What is the purpose of the -p option in the docker run command?
Select an answer first - 17
A system administrator is troubleshooting a Docker container that fails to start. The administrator runs 'docker logs <container-id>' and sees an error message indicating that a required environment variable is not set. The administrator wants to inspect the container's configuration to verify the environment variables that were set when the container was created. Which command should the administrator use?
Select an answer first - 18
Which command downloads a container image from a registry such as Docker Hub?
Select an answer first - 19
An administrator needs to view the list of currently running containers. Which command displays this information?
Select an answer first - 20
An administrator is running a web application in a Docker container and needs to expose it on port 8080 of the host. The application listens on port 80 inside the container. Which command should the administrator use to run the container with the appropriate port mapping?
Select an answer first
Finished these 5 questions?
Review the revealed explanations, or continue through the curriculum.
Free Basic Practice is a study aid with revealable answers — not a scored exam. Examers.io is independent and not affiliated with or endorsed by CompTIA. “XK0-006” is a trademark of its owner, used for identification only.