podman-ps:tldr:337be
The command "podman ps" is used to display the currently running containers in the Podman container runtime environment.
When you run the "podman ps" command, it will list all the active containers, along with some details for each container, such as the container ID, the image name used to create the container, the command it is running, the container status, and the ports being used by the container.
Here's an example output of the "podman ps" command:
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS b30cf2f2c81a ubuntu:latest sleep 3600 2 minutes ago Up 2 minutes 843a95fbf183 docker.io/library/httpd:latest httpd-fo… 2 days ago Up 2 days ago 8080->80/tcp
In this example, there are two containers running. The first container is based on the "ubuntu:latest" image and is running the command "sleep 3600". It was created 2 minutes ago and is still running (Up 2 minutes). The second container is based on the "docker.io/library/httpd:latest" image and is running an HTTP server. It has been running for 2 days and is accessible on port 8080 on the host machine, which is mapped to port 80 inside the container (8080->80/tcp).
The "podman ps" command is useful for checking the status and basic information of containers that are currently running in your Podman environment.