nerdexam
CompTIA

XK0-005 · Question #582

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

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

How the community answered

(52 responses)
  • A
    6% (3)
  • B
    2% (1)
  • C
    90% (47)
  • D
    2% (1)

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 Practice