Podman (the POD manager) is an open source tool for developing, managing, and running containers on Linux systems.
Podman is a daemonless, open source, Linux native tool designed to make it easy to find, run, build, share and deploy applications using Open Containers Initiative (OCI) Containers and Container Images. Podman provides a command line interface (CLI) familiar to anyone who has used the Docker Container Engine. Most users can simply alias Docker to Podman (alias docker=podman) without any problems.
Update package index files
sudo apt update
Install podman by running below command
sudo apt install podman -y
Check version of podman on the system
podman version
Terminal output for reference
$ podman version
Version: 3.4.4
API Version: 3.4.4
Go Version: go1.18.1
Built: Thu Jan 1 00:00:00 1970
OS/Arch: linux/amd64
Pull hello-world image using below command
podman pull hello-world
Run hello-world container
podman run hello-world
Terminal output for reference
$ podman run hello-world
Hello from Docker!
This message shows that your installation appears to be working correctly.
To generate this message, Docker took the following steps:
1. The Docker client contacted the Docker daemon.
2. The Docker daemon pulled the "hello-world" image from the Docker Hub.
(amd64)
3. The Docker daemon created a new container from that image which runs the
executable that produces the output you are currently reading.
4. The Docker daemon streamed that output to the Docker client, which sent it
to your terminal.
To try something more ambitious, you can run an Ubuntu container with:
$ docker run -it ubuntu bash
Share images, automate workflows, and more with a free Docker ID:
https://hub.docker.com/
For more examples and ideas, visit:
https://docs.docker.com/get-started/
To list all containers run below command
podman container list -a
Terminal output for reference
$ podman container list -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
d2485fee60f3 docker.io/library/hello-world:latest /hello 2 minutes ago Exited (0) 2 minutes ago adoring_swirles
To list images run below command
podman images
Terminal output for reference
$ podman images
REPOSITORY TAG IMAGE ID CREATED SIZE
docker.io/library/hello-world latest 9c7a54a9a43c 2 months ago 19.9 kB