sudo dnf --refresh update
sudo dnf upgrade
sudo dnf install yum-utils
sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
sudo dnf install docker-ce docker-ce-cli containerd.io docker-compose-plugin
If a specific version to be installed, below can be done
yum list docker-ce --showduplicates | sort -r
to remove older versions, below needs to be done
sudo yum remove -y docker-ce docker-ce-cli
[cloud_user@info2c ~]$ yum list docker-ce --showduplicates | sort -r
docker-ce.x86_64 3:20.10.2-3.el8 docker-ce-stable
docker-ce.x86_64 3:20.10.1-3.el8 docker-ce-stable
docker-ce.x86_64 3:20.10.0-3.el8 docker-ce-stable
docker-ce.x86_64 3:19.03.14-3.el8 docker-ce-stable
docker-ce.x86_64 3:19.03.13-3.el8 docker-ce-stable
now to install the specific version
sudo yum install docker-ce-20.10.2 docker-ce-cli-20.10.2 containerd.io
references:
https://ostechnix.com/install-docker-almalinux-centos-rocky-linux/
No comments:
Post a Comment