How to install Podman in Ubuntu?
Check the version of the Ubuntu you are using.
Step 1: Update the package index
Before installing any new package, it’s a good practice to update the package index to ensure you have access to the latest available packages. Open the terminal and run the following command:
sudo apt update
Step 2: Install required packages
Podman requires some additional packages to be installed. Run the following command to install the necessary dependencies:
sudo apt install -y software-properties-common
Step 3: Enable the Podman repository
Podman is not included in the default Ubuntu repositories. You need to enable the official Podman repository by running the following commands:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 8083EF36D831FF61
sudo add-apt-repository "deb https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_$(lsb_release -rs)/ /"
Step 4: Update the packages
Run the following command to update the package after the addition of various keys and repos.
sudo apt-get update
Step 4: Install Podman
After adding the repository, you can now install Podman by running the following command:
sudo apt install -y podman
Step 5: Verify the installation
To verify that Podman has been installed successfully, run the following command to check its version:
podman --version
How to Install Podman in Ubuntu ?
Podman is a modern and efficient open-source tool for developing, managing, and populating consumer containers as well as images on Linux platforms. It entered the market to rival Docker by providing a daemon-less model that is easier to use and provides more layers of security to manage containers. This article is designed for anyone using Ubuntu and interested in leveraging Podman’s capabilities; if you belong to this community, read on to learn how to install and use Podman on your Ubuntu machine. This article will explain the basics of Docker, how the program can be installed and set up, and what one has to do after the installation is complete.