How to install latest version docker and podman on Centos 8.1

check if we have last version

https://wiki.centos.org/Manuals/ReleaseNotes/CentOSLinux8

$ sudo dnf update
$ sudo dnf upgrade
$ more /etc/centos-release

How to install latest docker-ce onCentos 8.1

community version of Docker has no official support for Red Hat Enterprise Linux and Centos 8, so we need do following steps.

$ sudo dnf config-manager --add-repo=https://download.docker.com/linux/centos/docker-ce.repo
$ sudo dnf install https://download.docker.com/linux/centos/7/x86_64/stable/Packages/containerd.io-1.2.6-3.3.el7.x86_64.rpm 
$sudo dnf install docker-ce
$ sudo systemctl enable --now docker
$ sudo docker info

How to install latest version of podman

podman is not compatible with containerd so wee need to uninstall it.

$ sudo dnf remove containerd.io-1.2.6-3.3.el7.x86_64

Adding repot EPEL8 ( Extra Packages for Enterprise Linux 8 – x86_64 )

sudo dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm

add CentOS CR (Continuous Release) Repo

dnf config-manager --enable cr
dnf update

list of repost

sudo dnf repolist -v 

actual status of releases Centos

https://wiki.centos.org/About/Building_8.x

cat /etc/*-release

Install podman

cd /etc/yum.repos.d/
$sudo wget http://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/CentOS_8_Stream/devel:kubic:libcontainers:stable.repo
$sudo dnf install podman 

Another option is used snapd

sudo dnf -y install snapd
sudo systemctl enable --now snapd.socket
sudo ln -s /var/lib/snapd/snap /snap

now we install snapcraft

sudo snap install snapcraft --classic
sudo snap install podman --edge

check last version of podman

https://github.com/containers/libpod/releases

Leave a Reply

Close Menu