GIAC Foundational Cybersecurity Technologies Practice Test

Disable ads (and more) with a membership for a one time $2.99 payment

Prepare for the GIAC Foundational Cybersecurity Technologies Test. Utilize flashcards and multiple-choice questions, each with detailed hints and explanations to excel. Boost your readiness for the exam!

Each practice test/flash card set has 50 randomly selected questions from a bank of over 500. You'll get a new set of questions each time!

Practice this question and more.


What is the function of the command 'docker ps'?

  1. List running containers

  2. Pull images from a repository

  3. Run commands in a container

  4. Building Docker images

The correct answer is: List running containers

The command 'docker ps' is used to list all the currently running containers on a Docker host. When you execute this command, it provides valuable information such as the container ID, image name, command being executed in the container, creation time, status, ports being used, and the names assigned to the running containers. This function is essential for managing and monitoring containerized applications, allowing users to quickly see which containers are active and their status. The other options pertain to different Docker functionalities—pulling images from a repository involves using the 'docker pull' command, running commands inside a container can be accomplished with 'docker exec', and building Docker images is done via the 'docker build' command. Thus, each choice represents distinct capabilities within Docker, with 'docker ps' specifically honing in on monitoring running containers.