Tools, FAQ, Tutorials:
Install Docker CE on CentOS with YUM
How to install Docker CE (Community Edition) on CentOS with YUM tool?
✍: FYIcenter.com
You can follow this tutorial to install Docker CE on CentOS with YUM tool.
1. Verify OS, Kernel and Architecture:
fyicenter$ hostnamectl Operating System: CentOS Linux 7 (Core) Kernel: Linux 3.10.0-693.5.2.el7.x86_64 Architecture: x86-64
2. Add Docker repository to YUM tool.
fyicenter$ sudo yum-config-manager \ --add-repo https://download.docker.com/linux/centos/docker-ce.repo
3. Install the latest version of docker-ce, docker-ce-cli, and containerd.io.
fyicenter$ sudo yum install docker-ce docker-ce-cli containerd.io Installing: containerd.io 1.4.9-3.1.el7 docker-ce-stable docker-ce 3:20.10.8-3.el7 docker-ce-stable docker-ce-cli 1:20.10.8-3.el7 docker-ce-stable Installing for dependencies: container-selinux 2:2.119.2-1.911c772.el7_8 extras docker-ce-rootless-extras 20.10.8-3.el7 docker-ce-stable fuse-overlayfs 0.7.2-6.el7_8 extras fuse3-libs 3.6.1-4.el7 extras slirp4netns 0.4.3-4.el7_8 extras Updating for dependencies: libselinux 2.5-15.el7 base libselinux-devel 2.5-15.el7 base libselinux-python 2.5-15.el7 base libselinux-utils 2.5-15.el7 base libsemanage 2.5-14.el7 base libsemanage-python 2.5-14.el7 base libsepol 2.5-10.el7 base libsepol-devel 2.5-10.el7 base policycoreutils 2.5-34.el7 base policycoreutils-python 2.5-34.el7 base selinux-policy 3.13.1-268.el7 base selinux-policy-targeted 3.13.1-268.el7 base setools-libs 3.3.8-4.el7 base
4. Check the package versions:
fyicenter$ docker --version Docker version 20.10.8-3.el7, build d7080c1 fyicenter$ dockerd --version Docker version 20.10.8-3.el7, build d7080c1 fyicenter$ docker-containerd --version containerd github.com/containerd/containerd v1.4.9 ...
5. Possible installation issues are:
fyicenter$ sudo yum install docker-ce docker-ce-cli containerd.io ... Error: Package: 3:docker-ce-20.10.7-3.el7.x86_64 (docker-ce-stable) Requires: container-selinux >= 2:2.74 Error: Package: docker-ce-rootless-extras-20.10.7-3.el7.x86_64 (docker-ce-stable) Requires: slirp4netns >= 0.4
6. Make sure "base" and "extras" repository is added and enabled.
fyicenter$ more /etc/yum.repos.d/CentOS-Base.repo [base] enabled = 0 ... #additional packages that may be useful [extras] enabled = 0 ... fyicenter$ sudo yum-config-manager --enable base fyicenter$ sudo yum-config-manager --enable extras fyicenter$ sudo yum repolist base/7/x86_64 CentOS-7 - Base extras/7/x86_64 CentOS-7 - Extras docker-ce-stable/7/x86_64 Docker CE Stable - x86_64
2023-03-17, 1772🔥, 0💬
Popular Posts:
How To Read a File in Binary Mode in PHP? If you have a file that stores binary data, like an execut...
How to Instantiate Chaincode on BYFN Channel? You can follow this tutorial to Instantiate Chaincode ...
How to use the "rewrite-uri" Policy Statement for an Azure API service operation? The "rewrite-uri" ...
How to create a navigation file like navigation.xhtml for an EPUB 3.0 book? At least one navigation ...
How to read Atom validation errors at w3.org? If your Atom feed has errors, the Atom validator at w3...