{"id":35762,"date":"2022-05-18T17:36:34","date_gmt":"2022-05-18T17:36:34","guid":{"rendered":"https:\/\/www.techrepublic.com\/?p=3970750"},"modified":"2022-05-18T17:36:34","modified_gmt":"2022-05-18T17:36:34","slug":"how-to-install-podman-on-ubuntu","status":"publish","type":"post","link":"https:\/\/cloudnewshub.com\/?p=35762","title":{"rendered":"How to install Podman on Ubuntu"},"content":{"rendered":"<div id>\n<p property=\"abstract\"> Jack Wallen walks you through the process of installing the container runtime Podman on Ubuntu Server 22.04. <\/p>\n<\/div>\n<div id>\n<figure id=\"attachment_3963610\" aria-describedby=\"caption-attachment-3963610\" class=\"wp-caption alignnone\"><img decoding=\"async\" loading=\"lazy\" class=\"wp-image-3963610 size-full\" src=\"http:\/\/cloudnewshub.com\/wp-content\/uploads\/2022\/05\/how-to-install-podman-on-ubuntu.jpg\" alt=\"Linux code with hostname included\" width=\"800\" height=\"600\" srcset=\"http:\/\/cloudnewshub.com\/wp-content\/uploads\/2022\/05\/how-to-install-podman-on-ubuntu.jpg 800w, http:\/\/cloudnewshub.com\/wp-content\/uploads\/2022\/05\/how-to-install-podman-on-ubuntu-2.jpg 300w, http:\/\/cloudnewshub.com\/wp-content\/uploads\/2022\/05\/how-to-install-podman-on-ubuntu-3.jpg 270w, http:\/\/cloudnewshub.com\/wp-content\/uploads\/2022\/05\/how-to-install-podman-on-ubuntu-4.jpg 768w, http:\/\/cloudnewshub.com\/wp-content\/uploads\/2022\/05\/how-to-install-podman-on-ubuntu-5.jpg 170w, http:\/\/cloudnewshub.com\/wp-content\/uploads\/2022\/05\/how-to-install-podman-on-ubuntu-6.jpg 60w, http:\/\/cloudnewshub.com\/wp-content\/uploads\/2022\/05\/how-to-install-podman-on-ubuntu-7.jpg 540w, http:\/\/cloudnewshub.com\/wp-content\/uploads\/2022\/05\/how-to-install-podman-on-ubuntu-8.jpg 340w, http:\/\/cloudnewshub.com\/wp-content\/uploads\/2022\/05\/how-to-install-podman-on-ubuntu-9.jpg 120w, http:\/\/cloudnewshub.com\/wp-content\/uploads\/2022\/05\/how-to-install-podman-on-ubuntu-10.jpg 510w, http:\/\/cloudnewshub.com\/wp-content\/uploads\/2022\/05\/how-to-install-podman-on-ubuntu-11.jpg 180w, http:\/\/cloudnewshub.com\/wp-content\/uploads\/2022\/05\/how-to-install-podman-on-ubuntu-12.jpg 770w, http:\/\/cloudnewshub.com\/wp-content\/uploads\/2022\/05\/how-to-install-podman-on-ubuntu-13.jpg 370w, http:\/\/cloudnewshub.com\/wp-content\/uploads\/2022\/05\/how-to-install-podman-on-ubuntu-14.jpg 740w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\"><figcaption id=\"caption-attachment-3963610\" class=\"wp-caption-text\">Image: Christian-P. Worring\/Adobe Stock<\/figcaption><\/figure>\n<p>As you know, <a href=\"https:\/\/www.techrepublic.com\/article\/kubernetes-the-smart-persons-guide\/\">Kubernetes<\/a> has officially deprecated <a href=\"https:\/\/www.techrepublic.com\/article\/docker-the-smart-persons-guide\/\">Docker<\/a> support, which means anyone working with Kubernetes might have to change runtime environments. One such environment is nearly a drop-in replacement for Docker named Podman.<\/p>\n<p><strong>SEE: <\/strong><a href=\"https:\/\/www.techrepublic.com\/resource-library\/whitepapers\/hiring-kit-back-end-developer\/\"><strong>Hiring kit: Back-end Developer<\/strong><\/a><strong> (TechRepublic Premium)<\/strong><\/p>\n<aside class=\"pinbox right\">\n<h3 class=\"heading\">Open source: Must-read coverage<\/h3>\n<\/aside>\n<p>Podman is installed on RHEL-based server distributions by default and is available to install from the standard Ubuntu repositories. However, there are a few extra steps to take when installing Podman on Ubuntu.<\/p>\n<p>Let me walk you through the process.<\/p>\n<h2>What you\u2019ll need<\/h2>\n<p>The only things you\u2019ll need to make this work are a running instance of Ubuntu Server 22.04 (Jammy Jellyfish) and a user with sudo privileges. That\u2019s it. Let\u2019s make some container magic.<\/p>\n<h2>How to install Podman<\/h2>\n<p>The first thing you should do is update and upgrade your instance of Ubuntu. Log into the server and issue the following two commands:<\/p>\n<p><code>sudo apt update<\/code><br \/><code>sudo apt upgrade -y<\/code><\/p>\n<p>When the upgrade completes, you\u2019re ready to go. However, if the Linux kernel is upgraded in the process, you\u2019ll need to first restart the server so the changes take effect. Restart with:<\/p>\n<p><code>sudo reboot<\/code><\/p>\n<p>After the reboot completes, log back in and install Podman with the command:<\/p>\n<p><code>sudo apt install podman -y<\/code><\/p>\n<h2>How to add the default registries<\/h2>\n<p>Out of the box on Ubuntu Server, Podman does not include any registries. That means you won\u2019t be able to pull down any images. We have to fix that. Open the registries file with the command:<\/p>\n<p><code>sudo nano \/etc\/containers\/registries.conf<\/code><\/p>\n<p>You\u2019ll see a lot of content that is all commented out. Scroll down to the bottom of that file and paste the following code:<\/p>\n<p><code>[registries.search]<\/code><br \/><code>registries=[\"registry.access.redhat.com\", \"registry.fedoraproject.org\", \"docker.io\"]<\/code><\/p>\n<p>That will add the redhat, fedoraproject, and docker registries to Podman.<\/p>\n<p>Save and close the file.<\/p>\n<p>To verify the registries were added, issue the command:<\/p>\n<p><code>podman info<\/code><\/p>\n<p>You should see the following listed in the output:<\/p>\n<p><code>registries:<\/code><\/p>\n<pre>&nbsp;<code>search:<\/code><\/pre>\n<pre>&nbsp;<code>- registry.access.redhat.com<\/code><\/pre>\n<pre>&nbsp;<code>- registry.fedoraproject.org<\/code><\/pre>\n<pre>&nbsp;<code>- docker.io<\/code><\/pre>\n<p>There we go. We now have registries to pull from. Test it by pulling down the hello-world image with:<\/p>\n<p><code>podman pull hello-world<\/code><\/p>\n<p>You should see the following in the output:<\/p>\n<p><code>Trying to pull docker.io\/library\/hello-world:latest...<br \/><\/code><code>Getting image source signatures<br \/><\/code><code>Copying blob 2db29710123e done<br \/><\/code><code>Copying config feb5d9fea6 done<br \/><\/code><code>Writing manifest to image destination<br \/><\/code><code>Storing signatures<br \/><\/code><code>feb5d9fea6a5e9606aa995e879d862b825965ba48de054caab5ef356dc6b3412<\/code><\/p>\n<p>The last line will be a random string of characters indicating the ID of the image that was pulled.<\/p>\n<p>You can keep pulling different images to further test Podman. Once you\u2019re done, list out the images with:<\/p>\n<p><code>podman images<\/code><\/p>\n<p>You should see all the images you\u2019ve pulled listed (<strong>Figure A<\/strong>).<\/p>\n<p><strong>Figure A<\/strong><\/p>\n<figure id=\"attachment_3970754\" aria-describedby=\"caption-attachment-3970754\" class=\"wp-caption alignnone\"><img decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-3970754\" src=\"http:\/\/cloudnewshub.com\/wp-content\/uploads\/2022\/05\/how-to-install-podman-on-ubuntu-1.jpg\" alt=\"I've pulled down hello-world, nginx, and ubuntu images with Podman.\" width=\"828\" height=\"528\" srcset=\"http:\/\/cloudnewshub.com\/wp-content\/uploads\/2022\/05\/how-to-install-podman-on-ubuntu-15.jpg 828w, http:\/\/cloudnewshub.com\/wp-content\/uploads\/2022\/05\/how-to-install-podman-on-ubuntu-16.jpg 300w, http:\/\/cloudnewshub.com\/wp-content\/uploads\/2022\/05\/how-to-install-podman-on-ubuntu-17.jpg 768w, http:\/\/cloudnewshub.com\/wp-content\/uploads\/2022\/05\/how-to-install-podman-on-ubuntu-18.jpg 770w, http:\/\/cloudnewshub.com\/wp-content\/uploads\/2022\/05\/how-to-install-podman-on-ubuntu-19.jpg 370w, http:\/\/cloudnewshub.com\/wp-content\/uploads\/2022\/05\/how-to-install-podman-on-ubuntu-20.jpg 270w, http:\/\/cloudnewshub.com\/wp-content\/uploads\/2022\/05\/how-to-install-podman-on-ubuntu-21.jpg 740w, http:\/\/cloudnewshub.com\/wp-content\/uploads\/2022\/05\/how-to-install-podman-on-ubuntu-22.jpg 540w, http:\/\/cloudnewshub.com\/wp-content\/uploads\/2022\/05\/how-to-install-podman-on-ubuntu-23.jpg 810w\" sizes=\"auto, (max-width: 828px) 100vw, 828px\"><figcaption id=\"caption-attachment-3970754\" class=\"wp-caption-text\">I\u2019ve pulled down hello-world, nginx and ubuntu images with Podman.<\/figcaption><\/figure>\n<p>Congratulations, you now have Podman up and running on Ubuntu Server 22.04. Enjoy that containerized power at your fingertips.<\/p>\n<p><strong><em>Subscribe to TechRepublic\u2019s <\/em><\/strong><a href=\"https:\/\/www.youtube.com\/channel\/UCKyMiy1zmJ7aZ8aP6DLZLIA\"><strong><em>How To Make Tech Work on YouTube<\/em><\/strong><\/a><strong><em> for all the latest tech advice for business pros from Jack Wallen.<\/em><\/strong><\/p>\n<\/p><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Jack Wallen walks you through the process of installing the container runtime Podman on Ubuntu Server 22.04. Image: Christian-P. Worring\/Adobe Stock As you know, Kubernetes has officially deprecated Docker support, which means anyone working with Kubernetes might have to change runtime environments. One such environment is nearly a drop-in replacement for Docker named Podman. SEE: [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":35763,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[40,783,177],"tags":[],"class_list":["post-35762","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cloud","category-cloudsync","category-open-source"],"_links":{"self":[{"href":"https:\/\/cloudnewshub.com\/index.php?rest_route=\/wp\/v2\/posts\/35762","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cloudnewshub.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cloudnewshub.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cloudnewshub.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cloudnewshub.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=35762"}],"version-history":[{"count":0,"href":"https:\/\/cloudnewshub.com\/index.php?rest_route=\/wp\/v2\/posts\/35762\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cloudnewshub.com\/index.php?rest_route=\/wp\/v2\/media\/35763"}],"wp:attachment":[{"href":"https:\/\/cloudnewshub.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=35762"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cloudnewshub.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=35762"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cloudnewshub.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=35762"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}