Docker Community Forums

Share and learn in the Docker community.

Cann`t install docker

docker

(Runaway90) #1

Hi, can You help me? I cann`t install docker-ce …

sudo apt-get install docker-ce=17.09.1~ce-0~ubuntu

Reading package lists… Done
Building dependency tree
Reading state information… Done
docker-ce is already the newest version (17.09.1~ce-0~ubuntu).
The following packages were automatically installed and are no longer required:
bridge-utils ubuntu-fan
Use ‘sudo apt autoremove’ to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n]
Setting up docker-ce (17.09.1~ce-0~ubuntu) …
Job for docker.service failed because the control process exited with error code.
See “systemctl status docker.service” and “journalctl -xe” for details.
invoke-rc.d: initscript docker, action “start” failed.
● docker.service - Docker Application Container Engine
Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
Active: activating (auto-restart) (Result: exit-code) since Tue 2017-12-19 10:47:21 CET; 6ms ago
Docs: https://docs.docker.com
Process: 25273 ExecStart=/usr/bin/dockerd -H fd:// (code=exited, status=1/FAILURE)
Main PID: 25273 (code=exited, status=1/FAILURE)
CPU: 25ms

Dec 19 10:47:21 vitaliibezgin-OptiPlex-3040 systemd[1]: docker.service: Unit entered failed state.
Dec 19 10:47:21 vitaliibezgin-OptiPlex-3040 systemd[1]: docker.service: Failed with result ‘exit-code’.
dpkg: error processing package docker-ce (–configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
docker-ce
E: Sub-process /usr/bin/dpkg returned an error code (1)

systemctl status docker.service
● docker.service - Docker Application Container Engine
Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Tue 2017-12-19 10:48:38 CET; 1min 18s ago
Docs: https://docs.docker.com
Process: 25995 ExecStart=/usr/bin/dockerd -H fd:// (code=exited, status=1/FAILURE)
Main PID: 25995 (code=exited, status=1/FAILURE)
CPU: 29ms

Dec 19 10:48:38 vitaliibezgin-OptiPlex-3040 systemd[1]: docker.service: Unit entered failed state.
Dec 19 10:48:38 vitaliibezgin-OptiPlex-3040 systemd[1]: docker.service: Failed with result ‘exit-code’.
Dec 19 10:48:38 vitaliibezgin-OptiPlex-3040 systemd[1]: docker.service: Service hold-off time over, scheduling restart.
Dec 19 10:48:38 vitaliibezgin-OptiPlex-3040 systemd[1]: Stopped Docker Application Container Engine.
Dec 19 10:48:38 vitaliibezgin-OptiPlex-3040 systemd[1]: docker.service: Start request repeated too quickly.
Dec 19 10:48:38 vitaliibezgin-OptiPlex-3040 systemd[1]: Failed to start Docker Application Container Engine.
Dec 19 10:48:38 vitaliibezgin-OptiPlex-3040 systemd[1]: docker.service: Unit entered failed state.
Dec 19 10:48:38 vitaliibezgin-OptiPlex-3040 systemd[1]: docker.service: Failed with result ‘exit-code’.

AND docker service ls
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?