Forrest logo
back to the podman tool

podman-ps:tldr:4ca3a

podman-ps: Filter containers by status (created, running, removing, paused, exited and dead).
$ podman ps --filter="status=${status}"
try on your machine

The command podman ps --filter="status=${status}" is used to list running containers in Podman that match a specific filtering criterion.

Here is a breakdown of the command:

  • podman is the command-line tool for running and managing containers in Podman. It is similar to Docker.
  • ps is a command in Podman used to list containers.
  • --filter="status=${status}" is an option that filters the output of the ps command based on the status of the containers.

In this case, ${status} is a placeholder for a specific container status that you want to filter for. For example, if you replace ${status} with running, the command will list only the running containers.

The --filter option helps you narrow down the list of containers based on specific criteria such as status, name, label, etc.

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