I tried installing docker-ce
following the instructions provided in the official Docker Documentation using the repository. The installation got stuck at this point:
Setting up docker-ce (17.09.0~ce-0~ubuntu) ...
insserv: warning: script 'K01postgresql-9.5' missing LSB tags and overrides
insserv: warning: script 'postgresql-9.5' missing LSB tags and overrides
After waiting for a very long time I interrupted the process with sudo killall apt-get
. Now, whenever I try using a command that uses apt-get it will say the following:
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
When I run that command it just starts running the original command that never finishes. At this point, I just want to solve this without even being able to run Docker (I just wanted to try it out).
I already tried most answers for this related question. I can't even use sudo apt-get remove docker-ce
because I run into the same problem.
Some info on the docker installation:
docker.service - Docker Application Container Engine
Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: e
Drop-In: /etc/systemd/system/docker.service.d
└─ubuntu.conf
Active: activating (start) since mié 2017-11-22 15:38:31 CST; 7min ago
Docs: https://docs.docker.com
Main PID: 1431 (docker)
Tasks: 6
Memory: 18.4M
CPU: 21ms
CGroup: /system.slice/docker.service
└─1431 /usr/bin/docker -d -H fd://
docker-ce:
Installed: 17.09.0~ce-0~ubuntu
Candidate: 17.09.0~ce-0~ubuntu
Version table:
*** 17.09.0~ce-0~ubuntu 100
100 /var/lib/dpkg/status
I'm running Ubuntu 16.04
systemctl
showsdocker.service
running. However, it is still running after running the kill command. Same withbin/docker
process./etc/systemd/system/docker.service.d/ubuntu.conf
has the following:[Service]\n
# workaround to include default options\n
EnvironmentFile=/etc/default/docker\n
ExecStart=\n
ExecStart=/usr/bin/docker -d -H fd:// $DOCKER_OPTS\n
I don't really understand what this is doing. (added the
– Franco Apr 01 '18 at 16:29\n
to show line breaks)/etc/systemd/system/docker.service.d/ubuntu.conf
. Generally configuration in/etc/systemd/system
overrides configuration provided by package. There were several breaking changes in Docker packaging, so it should be safer to remove those overrides. – Tombart Apr 03 '18 at 16:04ps aux | grep "bin/docker"
finds the grep process itself. But in the end,sudo rm -rf /var/lib/docker
did the trick - thanks! – xeruf May 06 '18 at 19:10dockerd
process. – Tombart May 07 '18 at 07:18