Cause: there is an error docker during installation, and the docker of CentOS 7.9 installation reports an error. Requirements: fuse overlays> = 0.7
el7.x86_64
---> Package docker-scan-plugin.x86_64 0:0.8.0-3.el7 will be installed
---> Package libcgroup.x86_64 0:0.41-21.el7 will be installed
---> Package libseccomp.x86_64 0:2.3.1-4.el7 will be installed
--> Finished Dependency Resolution
Error: Package: 3:docker-ce-20.10.8-3.el7.x86_64 (docker-ce-stable)
Requires: container-selinux >= 2:2.74
Error: Package: docker-ce-rootless-extras-20.10.8-3.el7.x86_64 (docker-ce-stable)
Requires: fuse-overlayfs >= 0.7
Error: Package: docker-ce-rootless-extras-20.10.8-3.el7.x86_64 (docker-ce-stable)
Requires: slirp4netns >= 0.4
Error: Package: containerd.io-1.4.9-3.1.el7.x86_64 (docker-ce-stable)
Solution:
#Go to the yum source configuration folder
cd /etc/yum.repos.d
mv CentOS-Base.repo CentOS-Base.repo_bak
Add an entry to /etc/yum.repos.d/docker-ce.repo at the top of the file, as follows
[centos-extras]
name=Centos extras - $basearch
baseurl=http://mirror.centos.org/centos/7/extras/x86_64
enabled=1
gpgcheck=0
# save and quit
#Then install the command:
yum -y install slirp4netns fuse-overlayfs container-selinux
Read More:
- [Solved] CentOS build a docker error: job for docker.service failed….
- How to Fix ERROR Couldn’t connect to Docker daemon at http+docker://localunixsocket
- Docker service startup error: Job for docker.service failed because the control process exited with error code.
- [Solved] Docker Error: got permission denied while trying to connect to the docker daemon socket at…
- [Solved] docker Error: bridge docker0 failed: exchange full
- [Solved] Docker Start Error: iptables failed: iptables –wait -t nat -A DOCKER -p tcp -d 0/0 –dport 10241
- [Solved] Docker failed to start daemon: error initializing graphdriver: driver not supported
- Docker Open Error: Warning: docker.service changed on disk. Run ‘systemctl daemon-reload‘ to reload unit
- [Solved] docker Error response from daemon OCI runtime create failed container_linux.go380
- Jenkins reported an error when running the docker permission in the shell script
- Error in node when PM2 starts multiple processes in docker
- [Solved] Docker Error: SyntaxError: Non-ASCII character ‘\xe5‘ in file xxx
- Docker Create or Start Nginx Error: docker: Error response from daemon: driver failed programming external connectivity
- Docker Error response from daemon: Get https://registry-1.docker.io/v2/portainer/portainer/…
- Transaction check error during docker CE installation [How to Solve]
- Docker: How to Enter the Closed Container and View the Logging
- Docker Build Error: Failed to get D-Bus connection: Operation not permitted [Solved]
- [environment] docker: error response from daemon: OCI runtime
- Runtime error prompt in Android Studio: arrayadapter requires the resource ID to be a textview problem