How to install Podman on Ubuntu - TechRepublic

How to install Podman on Ubuntu

Jack Wallen walks you through the process of installing the Podman container deployment engine on Ubuntu 18.04.

Verfasst von
Jack Wallen
Jack Wallen
Jan 21, 2021
We may earn from vendors via affiliate links or sponsorships. This might affect product placement on our site, but not the content of our reviews. See our Terms of Use for details.

Must-read developer coverage

For those who don’t know, Podman is the drop-in replacement for Docker on the Red Hat/CentOS/Fedora environments. This new container technology improves on Docker by decentralizing the components necessary for container management. Instead of having a single daemon for everything, Podman uses individualized components that are only used when necessary.

Another advantage of Podman is that it can work with pods, in similar fashion to Kubernetes. Thing is, Podman was originally released for the Red Hat side of Linux. Of course, this being Linux, it was only a matter of time before Podman was made available for the Debian side of the dodgeball demarcation line.

I want to walk you through the process of installing Podman on Ubuntu. I’ll demonstrate on Ubuntu Server 18.04 (as it’s not working for 20.04). Ready? Let’s go.

Log in to your Ubuntu Server instance and source the release version with the command:

source /etc/os-release

Next, create a new apt source file with the command:

sudo nano /etc/apt/sources.list.d/podman.list

In that file add the line:

deb https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_18.04/ / 

Save and close the file. Download and install the necessary GPG key with the command:

curl -L https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_${VERSION_ID}/Release.key | sudo apt-key add -

Update apt with the command:

sudo apt-get update

Finally, install Podman with the command:

sudo apt-get install podman -y

When the installation completes, verify the installation with the command:

podman --version

You should see in the output the installed release number.

And that’s all there is to installing Podman on Ubuntu. Hopefully, those responsible for making this available for Ubuntu (and other distributions) will fix the issue with installation on the latest Ubuntu LTS release, so you can enjoy podman on 20.04 and beyond.

Subscribe to TechRepublic’s How To Make Tech Work on YouTube for all the latest tech advice for business pros from Jack Wallen.


Getty Images/iStockphoto
Jack Wallen

Jack Wallen is an award-winning writer for TechRepublic, The New Stack, and Linux New Media. He's covered a variety of topics for over twenty years and is an avid promoter of open source. For more news about Jack Wallen, visit his website jackwallen.com.