Docker Community Forums

Share and learn in the Docker community.

Need help - Failed docker install on Ubuntu 18.04

Hello, I’m not sure where else to post this. It’s my first time trying to setup docker.

I was following the online instructions to install and setup docker on Ubuntu. I got up to the part " INSTALL DOCKER ENGINE - COMMUNITY" and did sudo apt-get install docker-ce docker-ce-cli everything was working fine until it reached this part:

Created symlink /etc/systemd/system/ → /lib/systemd/system/docker.service.
Created symlink /etc/systemd/system/ → /lib/systemd/system/docker.socket.
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 Thu 2019-10-03 09:58:37 EDT; 5ms ago
  Process: 20509 ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock (code=exited, status=1/FAILURE)
 Main PID: 20509 (code=exited, status=1/FAILURE)

Oct 03 09:58:37 Skynet systemd[1]: docker.service: Failed with result 'exit-code'.
Oct 03 09:58:37 Skynet systemd[1]: Failed to start Docker Application Container Engine.
dpkg: error processing package docker-ce (--configure):
 installed docker-ce package post-installation script subprocess returned error exit status 1
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Processing triggers for systemd (237-3ubuntu10.29) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Processing triggers for ureadahead (0.100.0-21) ...
ureadahead will be reprofiled on next reboot
Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)

would anyone be able to help me troubleshoot this?

Found the solution. After a system reboot docker is working