Forrest logo
back to the ctr tool

ctr:tldr:c30a4

ctr: List all containers (running and stopped).
$ ctr containers list
try on your machine

The command ctr containers list is used to display a list of all existing containers on a system.

Here is how the command works:

  1. ctr: This is the command-line tool that interacts with the Container Runtime Interface (CRI) in the Linux kernel. It provides a way to manage containers at a lower level than traditional container management tools like Docker or Podman.

  2. containers: This is the sub-command that specifies the action to be performed, which in this case is to list containers.

  3. list: This is an argument to the containers sub-command that further specifies the operation to be performed, which is to display a list of containers.

When you run ctr containers list, the command communicates with the CRI to retrieve information about all the containers running on the system. It then outputs a list of containers, typically providing details such as their IDs, names, status, and other relevant information.

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 ctr tool