{"id":26441,"date":"2024-04-03T02:36:24","date_gmt":"2024-04-03T02:36:24","guid":{"rendered":"https:\/\/green.cloud\/docs\/docs\/greencloud-documents\/linux-operating-systems\/how-to-install-podman-on-debian-12\/"},"modified":"2026-01-19T00:45:48","modified_gmt":"2026-01-19T00:45:48","slug":"how-to-install-podman-on-debian-12","status":"publish","type":"docs","link":"https:\/\/green.cloud\/docs\/how-to-install-podman-on-debian-12\/","title":{"rendered":"How To Install Podman on Debian 12"},"content":{"rendered":"<p>Podman is a daemonless container engine for developing, managing, and running OCI Containers on your Linux System. It was created to replace Docker which requires a daemon running in the background. This guide will walk you through the installation of Podman on Debian 12 Linux machines.<\/p>\n<p>Podman\u00a0uses container runtimes as well for example runc but the launched containers are direct descendants of the podman process. It is part of the\u00a0libpod\u00a0library<span id=\"ezoic-pub-ad-placeholder-165\" class=\"ezoic-adpicker-ad\" data-ezoic-video-excluded=\"1\"><\/span><\/p>\n<h2 class=\"wp-block-heading\">Prerequisites<\/h2>\n<ul>\n<li>A\u00a0Debian 12 VPS<\/li>\n<li>SSH root access or a non-root user with sudo privileges<\/li>\n<\/ul>\n<p><iframe title=\"How to install Podman on Debian 12 | VPS Tutorial\" width=\"1170\" height=\"658\" src=\"https:\/\/www.youtube.com\/embed\/botSDq6ykAI?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/p>\n<h2 class=\"wp-block-heading\"><span id=\"Step-1-Log-in-via-SSH\" class=\"ez-toc-section\"><\/span>Step 1. Log in via SSH<\/h2>\n<p>Let\u2019s log in to our Debian 12 VPS with SSH as a root user or as a regular user with sudo privileges.<\/p>\n<p>If you cannot log in as root, remember to replace \u201croot\u201d with a user that has sudo privileges. Additionally, replace the \u201cIP_Address\u201d and \u201cPort_Number\u201d with your server\u2019s respective IP address and SSH port.<\/p>\n<h2 class=\"wp-block-heading\"><span id=\"Step-2-Install-Podman-on-Debian-12\" class=\"ez-toc-section\"><\/span>Step 2. Install Podman on Debian 12<\/h2>\n<p>Update your package index files on the system with this command:<\/p>\n<pre class=\"wp-block-code\"><code># apt update<\/code><\/pre>\n<p>You can now install Podman using the apt command:<\/p>\n<pre class=\"wp-block-code\"><code># apt install podman podman-compose<\/code><\/pre>\n<p>To check if Podman has been successfully installed, you can run:<\/p>\n<pre class=\"wp-block-code\"><code># podman version<\/code><\/pre>\n<p>After which you should receive a similar output to this:<\/p>\n<p><img decoding=\"async\" class=\" wp-image-32553 ezlazyloading\" title=\"How To Install pgAdmin 4 on Ubuntu 22.04|20.04|18.04 1\" src=\"https:\/\/green.cloud\/docs\/wp-content\/uploads\/2024\/04\/Screenshot_8.png\" \/><\/p>\n<h2 class=\"wp-block-heading\"><span id=\"Step-3-Podman-container-registries\" class=\"ez-toc-section\"><\/span>Step 3. Podman container registries<\/h2>\n<p>If there is no repository to fetch and install container Images by Podman, then we need to add that manually. We can use popular repositories such as Docker.io, Redhat, and Fedora.<\/p>\n<p>Modify the Registry configuration file by executing the following command:<\/p>\n<pre class=\"wp-block-code\"><code>nano \/etc\/containers\/registries.conf<\/code><\/pre>\n<p>If you want to add the following registries, Please navigate to the bottom of the document and insert the provided line.<\/p>\n<pre class=\"wp-block-code\">[registries.search]\r\nregistries = ['quay.io', 'docker.io']<\/pre>\n<p><img decoding=\"async\" class=\" wp-image-32553 ezlazyloading\" title=\"How To Install pgAdmin 4 on Ubuntu 22.04|20.04|18.04 1\" src=\"https:\/\/green.cloud\/docs\/wp-content\/uploads\/2024\/04\/Screenshot_9.png\" \/><br \/>\nOnce you\u2019ve finished, save the file by pressing\u00a0Ctrl+X, followed by the\u00a0Y\u00a0key, and exit by pressing\u00a0Enter.<\/p>\n<p>You can employ Podman for creating and managing containers, along with other features. However, we won\u2019t enumerate all of its capabilities in this context.<\/p>\n<h2 class=\"wp-block-heading\"><span id=\"Step-4-Using-Podman\" class=\"ez-toc-section\"><\/span>Step 4. Using Podman<\/h2>\n<p>Just like Docker, you can use almost the same commands to pull or run containers. To pull the alpine image for example, you can run:<\/p>\n<pre class=\"wp-block-code\"><code># podman pull docker.io\/alpine<\/code><\/pre>\n<p><img decoding=\"async\" class=\" wp-image-32553 ezlazyloading\" title=\"How To Install pgAdmin 4 on Ubuntu 22.04|20.04|18.04 1\" src=\"https:\/\/green.cloud\/docs\/wp-content\/uploads\/2024\/04\/Screenshot_10.png\" \/><br \/>\nYou can also simply run\u00a0<code>podman pull alpine<\/code>\u00a0and select from which container registry to pull the image.<\/p>\n<p>Running an Nginx container with port mapping can be done with this command:<\/p>\n<pre class=\"wp-block-code\"><code># podman run -dit --name nginx -p 8080:80 docker.io\/nginx<\/code><\/pre>\n<p><img decoding=\"async\" class=\" wp-image-32553 ezlazyloading\" title=\"How To Install pgAdmin 4 on Ubuntu 22.04|20.04|18.04 1\" src=\"https:\/\/green.cloud\/docs\/wp-content\/uploads\/2024\/04\/Screenshot_11.png\" \/><br \/>\nThis will run an Nginx container in the background, mapping port 80 from the container to port 8080 on our server.<\/p>\n<p>You can also check the containers that are currently running, or all containers that were also previously running with the commands:<\/p>\n<pre class=\"wp-block-code\"><code># podman ps \r\n# podman ps -a <\/code><\/pre>\n<p>You can also create pods, for example. To create an empty pod, you can run this:<\/p>\n<pre class=\"wp-block-code\"><code># podman pod create --name web<\/code><\/pre>\n<p>Now that the pod is created, we can add a container to it:<\/p>\n<pre class=\"wp-block-code\"><code># podman run -dt --pod web alpine:latest top<\/code><\/pre>\n<p>To check the containers running inside a pod, you can now run:<\/p>\n<pre class=\"wp-block-code\"><code># podman ps --pod<\/code><\/pre>\n<p>Congratulations! You have successfully installed Podman on Debian 12 as well as practiced some of the basic management commands for Podman.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Podman is a daemonless container engine for developing, managing, and running OCI Containers on your Linux System. It was created to replace Docker which requires a daemon running in the background. This guide will walk you through the installation of Podman on Debian 12 Linux machines. Podman\u00a0uses container runtimes as well for example runc but [&hellip;]<\/p>\n","protected":false},"author":15,"featured_media":0,"parent":17817,"menu_order":565,"comment_status":"closed","ping_status":"closed","template":"","doc_tag":[],"class_list":["post-26441","docs","type-docs","status-publish","hentry","no-post-thumbnail"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How To Install Podman on Debian 12 - GreenCloud Documentation<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/green.cloud\/docs\/how-to-install-podman-on-debian-12\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How To Install Podman on Debian 12 - GreenCloud Documentation\" \/>\n<meta property=\"og:description\" content=\"Podman is a daemonless container engine for developing, managing, and running OCI Containers on your Linux System. It was created to replace Docker which requires a daemon running in the background. This guide will walk you through the installation of Podman on Debian 12 Linux machines. Podman\u00a0uses container runtimes as well for example runc but [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/green.cloud\/docs\/how-to-install-podman-on-debian-12\/\" \/>\n<meta property=\"og:site_name\" content=\"GreenCloud Documentation\" \/>\n<meta property=\"article:modified_time\" content=\"2026-01-19T00:45:48+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/green.cloud\\\/docs\\\/how-to-install-podman-on-debian-12\\\/\",\"url\":\"https:\\\/\\\/green.cloud\\\/docs\\\/how-to-install-podman-on-debian-12\\\/\",\"name\":\"How To Install Podman on Debian 12 - GreenCloud Documentation\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/green.cloud\\\/docs\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/green.cloud\\\/docs\\\/how-to-install-podman-on-debian-12\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/green.cloud\\\/docs\\\/how-to-install-podman-on-debian-12\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/green.cloud\\\/docs\\\/wp-content\\\/uploads\\\/2024\\\/04\\\/Screenshot_8.png\",\"datePublished\":\"2024-04-03T02:36:24+00:00\",\"dateModified\":\"2026-01-19T00:45:48+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/green.cloud\\\/docs\\\/how-to-install-podman-on-debian-12\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/green.cloud\\\/docs\\\/how-to-install-podman-on-debian-12\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/green.cloud\\\/docs\\\/how-to-install-podman-on-debian-12\\\/#primaryimage\",\"url\":\"\",\"contentUrl\":\"\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/green.cloud\\\/docs\\\/how-to-install-podman-on-debian-12\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/green.cloud\\\/docs\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"GreenCloud Documents\",\"item\":\"https:\\\/\\\/green.cloud\\\/docs\\\/docs\\\/greencloud-documents\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Linux Operating Systems\",\"item\":\"https:\\\/\\\/green.cloud\\\/docs\\\/linux-operating-systems\\\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"How To Install Podman on Debian 12\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/green.cloud\\\/docs\\\/#website\",\"url\":\"https:\\\/\\\/green.cloud\\\/docs\\\/\",\"name\":\"GreenCloud Documentation\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/green.cloud\\\/docs\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How To Install Podman on Debian 12 - GreenCloud Documentation","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/green.cloud\/docs\/how-to-install-podman-on-debian-12\/","og_locale":"en_US","og_type":"article","og_title":"How To Install Podman on Debian 12 - GreenCloud Documentation","og_description":"Podman is a daemonless container engine for developing, managing, and running OCI Containers on your Linux System. It was created to replace Docker which requires a daemon running in the background. This guide will walk you through the installation of Podman on Debian 12 Linux machines. Podman\u00a0uses container runtimes as well for example runc but [&hellip;]","og_url":"https:\/\/green.cloud\/docs\/how-to-install-podman-on-debian-12\/","og_site_name":"GreenCloud Documentation","article_modified_time":"2026-01-19T00:45:48+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/green.cloud\/docs\/how-to-install-podman-on-debian-12\/","url":"https:\/\/green.cloud\/docs\/how-to-install-podman-on-debian-12\/","name":"How To Install Podman on Debian 12 - GreenCloud Documentation","isPartOf":{"@id":"https:\/\/green.cloud\/docs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/green.cloud\/docs\/how-to-install-podman-on-debian-12\/#primaryimage"},"image":{"@id":"https:\/\/green.cloud\/docs\/how-to-install-podman-on-debian-12\/#primaryimage"},"thumbnailUrl":"https:\/\/green.cloud\/docs\/wp-content\/uploads\/2024\/04\/Screenshot_8.png","datePublished":"2024-04-03T02:36:24+00:00","dateModified":"2026-01-19T00:45:48+00:00","breadcrumb":{"@id":"https:\/\/green.cloud\/docs\/how-to-install-podman-on-debian-12\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/green.cloud\/docs\/how-to-install-podman-on-debian-12\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/green.cloud\/docs\/how-to-install-podman-on-debian-12\/#primaryimage","url":"","contentUrl":""},{"@type":"BreadcrumbList","@id":"https:\/\/green.cloud\/docs\/how-to-install-podman-on-debian-12\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/green.cloud\/docs\/"},{"@type":"ListItem","position":2,"name":"GreenCloud Documents","item":"https:\/\/green.cloud\/docs\/docs\/greencloud-documents\/"},{"@type":"ListItem","position":3,"name":"Linux Operating Systems","item":"https:\/\/green.cloud\/docs\/linux-operating-systems\/"},{"@type":"ListItem","position":4,"name":"How To Install Podman on Debian 12"}]},{"@type":"WebSite","@id":"https:\/\/green.cloud\/docs\/#website","url":"https:\/\/green.cloud\/docs\/","name":"GreenCloud Documentation","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/green.cloud\/docs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/green.cloud\/docs\/wp-json\/wp\/v2\/docs\/26441","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/green.cloud\/docs\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/green.cloud\/docs\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/green.cloud\/docs\/wp-json\/wp\/v2\/users\/15"}],"replies":[{"embeddable":true,"href":"https:\/\/green.cloud\/docs\/wp-json\/wp\/v2\/comments?post=26441"}],"version-history":[{"count":17,"href":"https:\/\/green.cloud\/docs\/wp-json\/wp\/v2\/docs\/26441\/revisions"}],"predecessor-version":[{"id":28257,"href":"https:\/\/green.cloud\/docs\/wp-json\/wp\/v2\/docs\/26441\/revisions\/28257"}],"up":[{"embeddable":true,"href":"https:\/\/green.cloud\/docs\/wp-json\/wp\/v2\/docs\/17817"}],"wp:attachment":[{"href":"https:\/\/green.cloud\/docs\/wp-json\/wp\/v2\/media?parent=26441"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/green.cloud\/docs\/wp-json\/wp\/v2\/doc_tag?post=26441"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}