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
Best Answer
It appears that
docker-ce
is hanging on service start:Killing
systemctl start docker.service
process should be enough:check systemd jobs:
if any docker job is running, kill it:
Make sure to verify that you don't have any overrides defined:
e.g. overriding command to (used in
17.03
release):instead of
/usr/bin/dockerd
. Before continuing be sure to kill any remaining docker process:stop remaining Docker daemon process (if there's any):
If you're upgrading from previous docker version (
docker.io
,docker-engine
etc.) or just changing underlying file storage, it's safer to delete all docker data before installing new version.To fix broken installation, just run
sudo dpkg --configure -a
anddocker.service
should start.