I am using Cloudera Vm and trying to work with docker. I have installed it, but maybe there is something wrong with the installation. I tried to uninstall it and install it again clearly, but still the same issue.
I followed the steps for installation here: https://docs.docker.com/engine/install/centos/#install-using-the-repository
And after the following command
sudo yum install docker-ce docker-ce-cli containerd.io
I got the following errors at the end. Could that be the reason of my issues and if yes how can I fix these? (I tried the suggestions at the end of the error message but they did not help)
Error: Package: containerd.io-1.2.13-3.2.el7.x86_64 (docker-ce-nightly)
Requires: libseccomp
Error: Package: 3:docker-ce-19.03.13-1.2.beta2.el7.x86_64 (docker-ce-test)
Requires: libsystemd.so.0(LIBSYSTEMD_209)(64bit)
Error: Package: 3:docker-ce-19.03.13-1.2.beta2.el7.x86_64 (docker-ce-test)
Requires: systemd
Error: Package: containerd.io-1.2.13-3.2.el7.x86_64 (docker-ce-nightly)
Requires: container-selinux >= 2:2.74
Error: Package: 3:docker-ce-19.03.13-1.2.beta2.el7.x86_64 (docker-ce-test)
Requires: libseccomp.so.2()(64bit)
Error: Package: 3:docker-ce-19.03.13-1.2.beta2.el7.x86_64 (docker-ce-test)
Requires: libsystemd.so.0()(64bit)
Error: Package: containerd.io-1.2.13-3.2.el7.x86_64 (docker-ce-nightly)
Requires: systemd
Error: Package: 3:docker-ce-19.03.13-1.2.beta2.el7.x86_64 (docker-ce-test)
Requires: container-selinux >= 2:2.74
Error: Package: 3:docker-ce-19.03.13-1.2.beta2.el7.x86_64 (docker-ce-test)
Requires: libseccomp >= 2.3
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
Below you can see some of the commands which I tried.
[cloudera@quickstart ~]$ sudo docker --version Docker version
19.03.13-beta2, build ff3fbc9d55
[cloudera@quickstart ~]$ docker image ls
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
[cloudera@quickstart ~]$ ls -l /var/run/docker.sock
ls: cannot access /var/run/docker.sock: No such file or directory
[cloudera@quickstart ~]$ sudo service docker start
docker: unrecognized service
[cloudera@quickstart ~]$ sudo service docker.io start
docker.io: unrecognized service
docker: 'ls' is not a docker command.
See 'docker --help'
[cloudera@quickstart ~]$ docker version
Client: Docker Engine - Community
Version: 19.03.13-beta2
API version: 1.40
Go version: go1.13.14
Git commit: ff3fbc9d55
Built: Mon Aug 3 15:04:07 2020
OS/Arch: linux/amd64
Experimental: false
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
[cloudera@quickstart ~]$ ls -l /var/run/docker.sock
ls: cannot access /var/run/docker.sock: No such file or directory
Can you maybe see the problem or give me a hint what command should I run for more information?