Forrest logo
back to the docker tool

docker:tldr:5ec1d

List all currently running Docker containers.
$ docker ps
try on your machine

The command "docker ps" is used to list the currently running containers in Docker.

When you run this command, Docker will provide you with a table displaying the following information about each running container:

  1. CONTAINER ID: The unique identifier assigned to the container by Docker.
  2. IMAGE: The name of the image the container was created from.
  3. COMMAND: The command that was executed to run the container.
  4. CREATED: The date and time when the container was created.
  5. STATUS: The current state of the container (e.g., running, stopped).
  6. PORTS: The network ports that are being forwarded from the container to the host machine (if any).
  7. NAMES: The name assigned to the container (by default, Docker assigns random names to containers unless a custom name is specified during container creation).

By default, "docker ps" lists only the currently running containers. If you want to view all containers (including the ones stopped or exited), you can use the command "docker ps -a". Additionally, you can use various options and filters with the "docker ps" command to customize the output according to your requirements.

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