The adoption of Containers and microservice architectures has been amazing and speedy in the past few years. Docker is widely used runtime engine in the deployment of containerized applications in Kubernetes, Development environments and other container platforms. A recent utility called Podman provided as part of the libpod library was released to help you create and maintain containers.
The following tutorial will teach you how to install Podman on Amazon Linux and perform some basic commands with Podman. Podman is an open source, daemonless, Linux native tool created to ease finding, building, running, sharing and deployment of applications using Open Containers Initiative (OCI) Containers and Container Images.
Install Podman in Amazon Linux 2
Login to an instance of Amazon Linux 2 running in the cloud or in your on-prem infrastructure.
$ ssh [email protected] Last login: Thu Nov 29 19:30:17 2018 from gateway __| __|_ ) _| ( / Amazon Linux 2 AMI ___|\___|___| https://aws.amazon.com/amazon-linux-2/ 43 package(s) needed for security, out of 109 available Run "sudo yum update" to apply all updates
Confirm OS is correct.
$ cat /etc/os-release NAME="Amazon Linux" VERSION="2" ID="amzn" ID_LIKE="centos rhel fedora" VERSION_ID="2" PRETTY_NAME="Amazon Linux 2" ANSI_COLOR="0;33" CPE_NAME="cpe:2.3:o:amazon:amazon_linux:2" HOME_URL="https://amazonlinux.com/"
Update your OS
sudo yum update sudo systemctl reboot
Add the Kubic project project repository.
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 sudo yum -y install yum-plugin-copr
Install Podman on Amazon Linux 2:
sudo yum -y copr enable lsm5/container-selinux sudo yum -y install podman
Confirm the installation of Podman on Amazon Linux 2 was successful.
$ podman version Version: 1.9.3 RemoteAPI Version: 1 Go Version: go1.13.6 OS/Arch: linux/amd64
Now that Podman has been installed on Amazon Linux 2, the next guides to check are: