Podman is a modern al­tern­at­ive to Docker that lets you run con­tain­ers without a central daemon process. This makes Podman more secure, which is es­pe­cially be­ne­fi­cial for rootless con­tain­ers. You can install Podman on Ubuntu 22.04 in just a few steps.

Dedicated Server
Per­form­ance through in­nov­a­tion
  • En­ter­prise hardware
  • Con­fig­ur­able hardware equipment
  • ISO-certified data centres

What is Podman and what is it used for?

Podman (short for Pod Manager) is an open-source container engine that lets you manage con­tain­ers and pods without the need for a con­tinu­ously running back­ground service. Unlike Docker, Podman doesn’t require a daemon - it interacts directly with con­tain­ers and runs them in the user context. The engine is commonly used in secure en­vir­on­ments and on systems where secure and flexible container op­er­a­tions are needed.

Podman offers several ad­vant­ages. For one, the engine supports rootless con­tain­ers, allowing users to run con­tain­ers without root priv­ileges, 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 Kuber­netes-native concepts like pods and YAML con­fig­ur­a­tions.

What are the pre­requis­ites for in­stall­a­tion?

Before in­stalling Podman on Ubuntu, make sure you meet the following pre­requis­ites:

  • An up-to-date Ubuntu system: Make sure your Linux dis­tri­bu­tion is fully up to date.
  • Terminal access with sudo priv­ileges: In­stalling Podman on Ubuntu requires ad­min­is­trat­ive rights.
  • At least 2 GB of free disk space: You will need at least 2 GB of disk space to download and install the packages, as well as for future container images.
  • Internet con­nec­tion: You will also need a stable internet con­nec­tion since Podman is installed from the official Ubuntu re­pos­it­or­ies or al­tern­at­ive sources.

How to install Podman on Ubuntu 22.04

In­stalling Podman is straight­for­ward and can be completed with just a few commands. Follow the steps outlined below.

Step 1: Update the system

Before in­stalling new packages, you should update your system to the latest version. This ensures that all de­pend­en­cies 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 in­stalling Podman on Ubuntu 22.04. Since Ubuntu includes Podman in its official re­pos­it­or­ies, you can install it using the package manager:

sudo apt install podman -y
bash

This command downloads Podman and all required de­pend­en­cies and installs them on your system.

Step 3: Check the version

Once the in­stall­a­tion 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 suc­cess­fully, the output should show the installed version number.

Image: Podman: Version display on Ubuntu
The version output in our example shows an in­stall­a­tion of Podman version 3.4.4.

How to verify the in­stall­a­tion

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 con­firm­ing that Podman is running suc­cess­fully.

Image: Podman: Successful creation of a test container
You can now use Podman to create any con­tain­ers you want, such as the Docker test container ‘hello-world’.

You can also check your container en­vir­on­ment any time with the following command:

podman info
bash

This command provides detailed in­form­a­tion about the Podman in­stall­a­tion, supported storage backends, and other con­fig­ur­a­tion details. If you encounter any issues, you can use podman system reset to fully reset the Podman con­fig­ur­a­tion.

Tip

For more in­form­a­tion about in­stalling and using the container engine, see our full Podman tutorial.

Compute Engine
The ideal IaaS for your workload
  • Cost-effective vCPUs and powerful dedicated cores
  • Flex­ib­il­ity with no minimum contract
  • 24/7 expert support included
Go to Main Menu