Skip to content

Instantly share code, notes, and snippets.

@GrantGochnauer
Created February 6, 2016 12:48
Show Gist options
  • Save GrantGochnauer/2bd408e12ac6217e5ebd to your computer and use it in GitHub Desktop.
Save GrantGochnauer/2bd408e12ac6217e5ebd to your computer and use it in GitHub Desktop.
Docker 1.10 install error Hypriot
Job for docker.service failed. See 'systemctl status docker.service' and 'journalctl -xn' for details.
invoke-rc.d: initscript docker, action "start" failed.
dpkg: error processing package docker-hypriot (--configure):
subprocess installed post-installation script returned error exit status 1
Processing triggers for initramfs-tools (0.120) ...
Processing triggers for libc-bin (2.19-18+deb8u2) ...
Processing triggers for systemd (215-17+deb8u3) ...
Errors were encountered while processing:
docker-hypriot
E: Sub-process /usr/bin/dpkg returned an error code (1)
[root:~]# systemctl status docker.service
‚óè docker.service - Docker Application Container Engine
Loaded: loaded (/lib/systemd/system/docker.service; enabled)
Drop-In: /usr/lib/systemd/system/docker.service.d
└─docker-flannel.conf, docker-overlay.conf
Active: activating (auto-restart) (Result: exit-code) since Sat 2016-02-06 06:48:20 CST; 1s ago
Docs: https://docs.docker.com
Process: 4836 ExecStart=/usr/bin/docker -d -H unix:///var/run/docker.sock -s overlay --exec-opt native.cgroupdriver=cgroupfs (code=exited, status=125)
Process: 4828 ExecStartPre=/bin/sh -c ifconfig docker0 down; brctl delbr docker0 (code=exited, status=1/FAILURE)
Main PID: 4836 (code=exited, status=125)
CGroup: /system.slice/docker.service
Feb 06 06:48:20 kubepi systemd[1]: Failed to start Docker Application Container Engine.
Feb 06 06:48:20 kubepi systemd[1]: Unit docker.service entered failed state.
@Govinda-Fichtner
Copy link

@GrantGochnauer What version of Hypriot OS are you using?

@dilgerma
Copy link

dilgerma commented Feb 6, 2016

I have the same problem, this is in the logs:

-- Unit docker.service has begun starting up.
Feb 06 15:06:27 pi25 systemd[1]: docker.service: Start operation timed out. Terminating.
Feb 06 15:06:27 pi25 systemd[1]: docker.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Feb 06 15:06:27 pi25 systemd[1]: Failed to start Docker Application Container Engine.
-- Subject: Unit docker.service has failed
-- Defined-By: systemd

-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel

-- Unit docker.service has failed.

-- The result is failed.

@MariusRumpf
Copy link

@Govinda-Fichtner Seeing this with Hypriot OS Version 0.6.1 Hector, using cluster-lab at apt-get upgrade on a Raspberry Pi 2. Same on my custom armbian cubietruck upgrade.

@mcoms
Copy link

mcoms commented Feb 8, 2016

Hey, I got this error too. After the upgrade, the first time you start the daemon, it calculates a lot of checksums. Far too many to be done inside APT's install timeout.

What fixed it for me was:

HypriotOS: root@rigberry in ~
$ sudo service docker stop
HypriotOS: root@rigberry in ~
$ sudo docker daemon
< wait a very long time — took 10 minutes for me >
INFO[0609] Graph migration to content-addressability took 608.72 seconds
INFO[0614] Loading containers: done.    
INFO[0614] Daemon has completed initialization
INFO[0615] API listen on /var/run/docker.sock
< done, Ctrl+C to quit >
HypriotOS: root@rigberry in ~
$ sudo apt-get dist-upgrade 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
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] Y
Setting up docker-hypriot (1.10.0-1) ...
HypriotOS: root@rigberry in ~
$ docker ps
CONTAINER ID        IMAGE                 COMMAND             CREATED             STATUS              PORTS                    NAMES

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment