Podman is a modern alternative to Docker that lets you run containers without a central daemon process. This makes Podman more secure, which is especially beneficial for rootless containers. You can install Podman on Ubuntu 22.04 in just a few steps.

Dedicated Servers
Performance through innovation
  • Dedicated enterprise hardware
  • Intel® Xeon® or AMD processors
  • Leading security technologies

What is Podman and what is it used for?

Podman (short for Pod Manager) is an open-source container engine that lets you manage containers and pods without the need for a continuously running background service. Unlike Docker, Podman doesn’t require a daemon — it interacts directly with containers and runs them in the user context. The engine is commonly used in secure environments and on systems where secure and flexible container operations are needed.

Podman offers several advantages. For one, the engine supports rootless containers, allowing users to run containers without root privileges, which improves security. Since the CLI commands are largely identical to familiar Docker commands, longtime Docker users can easily make the switch. Podman also supports Kubernetes-native concepts like pods and YAML configurations.

What are the prerequisites for installation?

Before installing Podman on Ubuntu, make sure you meet the following prerequisites:

  • An up-to-date Ubuntu system: Make sure your Linux distribution is fully up to date.
  • Terminal access with sudo privileges: Installing Podman on Ubuntu requires administrative rights.
  • At least 2 GB of free storage space: You will need at least 2 GB of storage space to download and install the packages, as well as for future container images.
  • Internet connection: You will also need a stable internet connection since Podman is installed from the official Ubuntu repositories or alternative sources.

How to install Podman on Ubuntu 22.04

Installing Podman is straightforward and can be completed with just a few commands. Follow the steps outlined below.

Step 1: Update the system

Before installing new packages, you should update your system to the latest version. This ensures that all dependencies are up to date.

sudo apt update && sudo apt upgrade -y
bash

This command updates your package lists and installs the latest updates for your system.

Step 2: Install Podman

Now you can proceed with installing Podman on Ubuntu 22.04. Since Ubuntu includes Podman in its official repositories, you can install it using the package manager:

sudo apt install podman -y
bash

This command downloads Podman and all required dependencies and installs them on your system.

Step 3: Check the version

Once the installation is complete, you can check the installed version of Podman to confirm that the engine is ready to use:

podman --version
bash

If Podman was installed successfully, the output should show the installed version number.

Image: Podman: Version display on Ubuntu
The version output in our example shows an installation of Podman version 3.4.4.

How to verify the installation

To check that Podman is working properly on your system, try running a container. Use the simple “hello-world” container to test it:

podman run --rm hello-world
bash

If all goes well, you should see a welcome message confirming that Podman is running successfully.

Image: Podman: Successful creation of a test container
You can now use Podman to create any containers you want, such as the Docker test container “hello-world”.

You can also check your container environment anytime with the following command:

podman info
bash

This command provides detailed information on the Podman installation, supported storage backends, and other configuration details. If you run into issues, you can use podman system reset to fully reset the Podman configuration.

Compute Engine
The ideal IaaS for your workload
  • Cost-effective vCPUs and powerful dedicated cores
  • Flexibility with no minimum contract
  • 24/7 expert support included
Was this article helpful?
Go to Main Menu