Forrest logo
back to the docker tool

docker:tldr:b0bab

docker: List currently running Docker containers.
$ docker container ls
try on your machine

The command docker container ls is used to list all the running Docker containers on your system. It provides a list of containers with details like Container ID, Image, Command executed within the container, created time, Status, and the corresponding container name.

Here is a breakdown of the command:

  • docker: It is the command-line interface (CLI) tool used to interact with Docker.
  • container: It specifies that we want to perform an operation on Docker containers.
  • ls: It stands for "list" and is used to display a list of running containers.

Executing docker container ls will output a table with information about the currently running containers, including the container's ID, image name, command, container status, created time, and container name. It helps you easily identify the running containers and verify their status and details.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the docker tool