CompTIA Linux+ (XK0-006) — Question 1
Users cannot access an application that is running inside containers. The administrator wants to validate whether the containers are running. Which of the following commands should the administrator use?
Answer options
- A. docker start
- B. docker ps
- C. docker run
- D. docker images
Correct answer: B
Explanation
The correct command is 'docker ps', as it lists all active containers, allowing the administrator to confirm their status. 'docker start' is used to start stopped containers, 'docker run' creates and starts a new container, and 'docker images' displays the available images but does not provide information on running containers.