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, 1512🔥, 0💬
Popular Posts:
How to view API details on the Publisher Dashboard of an Azure API Management Service? You can follo...
How To Set session.gc_divisor Properly in PHP? As you know that session.gc_divisor is the frequency ...
Why I am getting "The Windows SDK version 8.1 was not found" error, when building my C++ application...
Where to get a JSON.stringify() Example Code in JavaScript? Here is a good JSON.stringify() example ...
How to use urllib.parse.urlencode() function to encode HTTP POST data? My form data has special char...