nerdexam
CompTIACompTIA

XK0-005 · Question #582

XK0-005 Question #582: Real Exam Question with Answer & Explanation

The correct answer is C: docker ps. The command that can be used to check for running containers is docker ps. The docker ps command can list all the containers that are currently running on the system. To show all the containers, including those that are stopped, the administrator can use docker ps -a ©.

Scripting, Containers, and Automation

Question

A systems administrator wants to check for running containers. Which of the following commands can be used to show this information?

Options

  • Adocker pull
  • Bdocker stats
  • Cdocker ps
  • Ddocker list

Explanation

The command that can be used to check for running containers is docker ps. The docker ps command can list all the containers that are currently running on the system. To show all the containers, including those that are stopped, the administrator can use docker ps -a ©.

Topics

#Docker#container management#CLI commands

Community Discussion

No community discussion yet for this question.

Full XK0-005 PracticeBrowse All XK0-005 Questions