Docker Community Forums

Share and learn in the Docker community.

Likely Issue with docker.service when attempting to install Docker CE


(Aswartz2297) #1

I have taken over an Ubuntu amd64 machine from someone and am trying to reinstall the latest version of Docker after the previous user uninstalled it while attempting to correct a nvidia runtime issue. It appears docker.service was for some reason removed from the machine in an attempt to address the problem with ExecStart=/usr/bin/dockerd --host=fd:// --add-runtime=nvidia=/usr/bin/nvidia-container-runtime, which failed to start the Docker application container engine, and the device is now throwing the error “Failed to start LSB: Create lightweight, portable, self-sufficient containers.”

When starting from the beginning of the Docker website’s instructions regarding how to install Docker CE, I get so far as sudo apt-get install docker-ce and confirm that I want to download before being shown the following :

Setting up docker-ce (18.06.0~ce~2.1.rc1-0~ubuntu) …
/usr/bin/deb-systemd-helper: error: unable to read docker.service
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 - LSB: Create lightweight, portable, self-sufficient containers.
Loaded: loaded (/etc/init.d/docker; bad; vendor preset: enabled)
Drop-In: /etc/systemd/system/docker.service.d
└─override.conf
Active: failed (Result: exit-code) since Fri 2018-06-29 11:57:30 EDT; 5ms ago
Docs: man:systemd-sysv-generator(8)
Process: 9102 ExecStart=/usr/bin/dockerd --host=fd:// --add-runtime=nvidia=/usr/bin/nvidia-container-runtime (code=exited, status=203/EXEC)
Main PID: 8980 (code=exited, status=203/EXEC)

Jun 29 11:57:30 lambda-quad systemd[1]: Starting LSB: Create lightweight, portable, self-sufficient containers…
Jun 29 11:57:30 lambda-quad systemd[1]: docker.service: Control process exited, code=exited status=203
Jun 29 11:57:30 lambda-quad systemd[1]: Failed to start LSB: Create lightweight, portable, self-sufficient containers…
Jun 29 11:57:30 lambda-quad systemd[1]: docker.service: Unit entered failed state.
Jun 29 11:57:30 lambda-quad 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)

I would like to find out how to correct this issue so that I can install docker again and begin addressing the preceding issues. Any help or resources regarding this matter will be highly appreciated.