aws, podman,

How to install Podman on AWS EC2 Amazon Linux 2 instance

Aug 10, 2021 · 1 min read · Post a comment
How to install Podman on AWS EC2 Amazon Linux 2 instance

If you are looking for a Docker replacement then Podman is the right choice for you. The installation process is quick and easy. In this tutorial, I’m gonna show you how to install podman on AWS EC2 Amazon Linux 2 instance.

Prerequisites

  • AWS account
  • EC2 instance with Amazon Linux 2 template

Install Podman on AWS EC2 Amazon Linux 2 instance

Step 1. Login and update the packages:

sudo yum update

Step 2. Execute the following command to add the Kubic project repo:

sudo curl -L -o /etc/yum.repos.d/devel:kubic:libcontainers:stable.repo https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/CentOS_7/devel:kubic:libcontainers:stable.repo

Step 3. Install the yum corp plugin:

sudo yum install yum-plugin-copr

Step 4. Enable the SELinux policy for container runtimes:

sudo yum copr enable lsm5/container-selinux

Step 5. Install podman:

sudo yum install podman

Step 6. To verify the installation run:

podman version

Conclusion

This tutorial will quickly guide you on how to install Podman on AWS EC2 Amazon Linux 2 instance. Feel free to leave a comment below and if you find this tutorial useful, follow our official channel on telegram.