podman-ps:tldr:d144c
podman-ps: Filter containers that contain a substring in their name.
$ podman ps --filter="name=${name}"
try on your machine
The command podman ps --filter="name=${name}
is used to list the running containers managed by Podman, with a filter applied to the container name.
Here is a breakdown of the command:
podman
: This is the command-line tool used to manage containers using Podman, which is a container engine similar to Docker.ps
: This sub-command is used to list the running containers.--filter="name=${name}"
: This option specifies a filter to be applied to the container name. The${name}
is a placeholder that should be replaced with the desired name of the container. This filter allows you to search for containers with specific names or patterns in their names.
For example, if you want to list all the running containers with the name "my-container", you would replace ${name}
with "my-container"
, and the command would become:
podman ps --filter="name=my-container"
This command will then list all the running containers whose names match the specified filter.
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.