CentOS8 install docker and docer-conpose
Error:
Problem: package docker-ce-3:19.03.8-3.el7.x86_64 requires containerd.io >= 1.2.2-3, but none of the providers can be installed
1.upgrade yum
yum update
2. Installation dependent environment
yum install -y yum-utils device-mapper-persistent-data lvm2
3. Add docker source
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
4. Install docker CE
yum install docker-ce
Error:
Problem: package docker-ce-3:19.03.8-3.el7.x86_64 requires containerd.io >= 1.2.2-3, but none of the providers can be installed
Need to install the latest version of containerd.io
dnf install https://download.docker.com/linux/centos/7/x86_64/stable/Packages/containerd.io-1.2.6-3.3.el7.x86_64.rpm
4. Install docker ce again
yum install docker-ce
View the docker version
docker -v
5. Directly pull docker compose on GitHub
curl -L https://github.com/docker/compose/releases/download/1.24.0-rc1/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
6. Grant authority
chmod +x /usr/local/bin/docker-compose
After installation, check the version
docker-compose --version
Similar Posts:
- Docker-compose Run Error: Couldn’t connect to Docker daemon at http+docker://localhost – is it running?
- [Solved] Docker ERROR: Couldn’t connect to Docker daemon at http+docker://localunixsocket – is it running?
- [Solved] Centos8 Install Docker Error: Error: Unable to find a match: docker
- [Solved] “/usr/local/bin/docker-compose: Permission denied”
- CentOS8 Failed to start docker.service: Unit docker.service not found [How to Solve]
- Ubuntu20.04 server Error: Failed to restart docker.service: Unit docker.service not found
- How to Solve docker run Error: oci runtime error
- [Solved] cannot kill Docker container – permission denied
- Error: unsupported locale setting