{"id":215,"date":"2023-08-01T13:45:27","date_gmt":"2023-08-01T13:45:27","guid":{"rendered":"http:\/\/192.168.0.142\/?p=215"},"modified":"2023-08-03T05:22:28","modified_gmt":"2023-08-03T05:22:28","slug":"podman-installation-on-ubuntu-22-04","status":"publish","type":"post","link":"http:\/\/192.168.0.142\/podman-installation-on-ubuntu-22-04\/","title":{"rendered":"Podman installation on Ubuntu 22.04"},"content":{"rendered":"\n

Podman (the POD manager) is an open source tool for developing, managing, and running containers on Linux systems.<\/p>\n\n\n\n

Podman is a daemonless, open source, Linux native tool designed to make it easy to find, run, build, share and deploy applications using Open Containers Initiative (OCI) Containers and Container Images. Podman provides a command line interface (CLI) familiar to anyone who has used the Docker Container Engine. Most users can simply alias Docker to Podman (alias docker=podman) without any problems.<\/p>\n\n\n\n

Update package index files<\/strong><\/p>\n\n\n\n

sudo apt update<\/code><\/pre>\n\n\n\n

Install podman by running below command<\/strong><\/p>\n\n\n\n

sudo apt install podman -y<\/code><\/pre>\n\n\n\n

Check version of podman on the system<\/strong><\/p>\n\n\n\n

podman version<\/code><\/pre>\n\n\n\n

Terminal output for reference<\/strong><\/p>\n\n\n\n

$ podman version\nVersion:      3.4.4\nAPI Version:  3.4.4\nGo Version:   go1.18.1\nBuilt:        Thu Jan  1 00:00:00 1970\nOS\/Arch:      linux\/amd64<\/code><\/pre>\n\n\n\n

Pull hello-world image using below command<\/strong><\/p>\n\n\n\n

podman pull hello-world<\/code><\/pre>\n\n\n\n

Run hello-world container<\/strong><\/p>\n\n\n\n

podman run hello-world<\/code><\/pre>\n\n\n\n

Terminal output for reference<\/strong><\/p>\n\n\n\n

$ podman run hello-world\n\nHello from Docker!\nThis message shows that your installation appears to be working correctly.\n\nTo generate this message, Docker took the following steps:\n 1. The Docker client contacted the Docker daemon.\n 2. The Docker daemon pulled the \"hello-world\" image from the Docker Hub.\n    (amd64)\n 3. The Docker daemon created a new container from that image which runs the\n    executable that produces the output you are currently reading.\n 4. The Docker daemon streamed that output to the Docker client, which sent it\n    to your terminal.\n\nTo try something more ambitious, you can run an Ubuntu container with:\n $ docker run -it ubuntu bash\n\nShare images, automate workflows, and more with a free Docker ID:\n https:\/\/hub.docker.com\/\n\nFor more examples and ideas, visit:\n https:\/\/docs.docker.com\/get-started\/<\/code><\/pre>\n\n\n\n

To list all containers run below command<\/strong><\/p>\n\n\n\n

podman container list -a<\/code><\/pre>\n\n\n\n

Terminal output for reference<\/strong><\/p>\n\n\n\n

$ podman container list -a\nCONTAINER ID  IMAGE                                 COMMAND     CREATED        STATUS                    PORTS       NAMES\nd2485fee60f3  docker.io\/library\/hello-world:latest  \/hello      2 minutes ago  Exited (0) 2 minutes ago              adoring_swirles<\/code><\/pre>\n\n\n\n

To list images run below command<\/strong><\/p>\n\n\n\n

podman images<\/code><\/pre>\n\n\n\n

Terminal output for reference<\/strong><\/p>\n\n\n\n

$ podman images\nREPOSITORY                     TAG         IMAGE ID      CREATED       SIZE\ndocker.io\/library\/hello-world  latest      9c7a54a9a43c  2 months ago  19.9 kB<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"

Podman (the POD manager) is an open source tool for developing, managing, and running containers on Linux systems. Podman is a daemonless, open source, Linux native tool designed to make it easy to find, run, build, share and deploy applications using Open Containers Initiative (OCI) Containers and Container Images. Podman provides a command line interface … Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":321,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[25,12],"_links":{"self":[{"href":"http:\/\/192.168.0.142\/wp-json\/wp\/v2\/posts\/215"}],"collection":[{"href":"http:\/\/192.168.0.142\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/192.168.0.142\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/192.168.0.142\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/192.168.0.142\/wp-json\/wp\/v2\/comments?post=215"}],"version-history":[{"count":14,"href":"http:\/\/192.168.0.142\/wp-json\/wp\/v2\/posts\/215\/revisions"}],"predecessor-version":[{"id":344,"href":"http:\/\/192.168.0.142\/wp-json\/wp\/v2\/posts\/215\/revisions\/344"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/192.168.0.142\/wp-json\/wp\/v2\/media\/321"}],"wp:attachment":[{"href":"http:\/\/192.168.0.142\/wp-json\/wp\/v2\/media?parent=215"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/192.168.0.142\/wp-json\/wp\/v2\/categories?post=215"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/192.168.0.142\/wp-json\/wp\/v2\/tags?post=215"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}