docker / for-linux

Docker Engine for Linux

Home Page:https://docs.docker.com/engine/installation/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Docker-ce install fails on Debian Stretch on iMX6

appcodr opened this issue · comments

Description

Could not install Docker on Debian Stretch in iMX6 board. I am following this link
https://docs.docker.com/install/linux/docker-ce/debian/

Steps to reproduce the issue:

  1. Follow the steps in the link above
  2. when you run apt-get install docker-ce, I get the error below

Describe the results you received:

.....
....
Setting up aufs-tools (1:4.1+20161219-1) ...
Setting up docker-ce (18.03.0~ce-0~debian) ...
Created symlink /etc/systemd/system/multi-user.target.wants/docker.service → /lib/systemd/system/docker.service.
Created symlink /etc/systemd/system/sockets.target.wants/docker.socket → /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 2018-04-05 22:23:18 UTC; 104ms ago
     Docs: https://docs.docker.com
  Process: 18993 ExecStart=/usr/bin/dockerd -H fd:// (code=exited, status=1/FAILURE)
 Main PID: 18993 (code=exited, status=1/FAILURE)

Apr 05 22:23:18 var-som-mx6 systemd[1]: docker.service: Unit entered failed …te.
Apr 05 22:23:18 var-som-mx6 systemd[1]: docker.service: Failed with result '…e'.
Hint: Some lines were ellipsized, use -l to show in full.
dpkg: error processing package docker-ce (--configure):
 subprocess installed post-installation script returned error exit status 1
Setting up git-man (1:2.11.0-3+deb9u2) ...
Setting up less (481-2.1) ...
Processing triggers for mime-support (3.60) ...
Setting up sudo (1.8.19p1-2.1) ...
Setting up liberror-perl (0.17024-1) ...
Setting up cgroupfs-mount (1.3) ...
Setting up rsync (3.1.2-1+deb9u1) ...
Created symlink /etc/systemd/system/multi-user.target.wants/rsync.service → /lib/systemd/system/rsync.service.
Setting up dkms (2.3-2) ...
Setting up linux-kbuild-4.9 (4.9.82-1+deb9u3) ...
Processing triggers for libc-bin (2.24-11+deb9u1) ...
Processing triggers for systemd (232-25+deb9u1) ...
Processing triggers for man-db (2.7.6.1-2) ...
Setting up pigz (2.3.4-1) ...
Setting up git (1:2.11.0-3+deb9u2) ...
Setting up aufs-dkms (4.9+20161219-1) ...
Loading new aufs-4.9+20161219 DKMS files...
It is likely that 4.9.11-02286-gaa81171 belongs to a chroot's host
Building for 4.9.11-02286-gaa81171
Module build for kernel 4.9.11-02286-gaa81171 was skipped since the
kernel headers for this kernel does not seem to be installed.
Errors were encountered while processing:
 docker-ce
E: Sub-process /usr/bin/dpkg returned an error code (1)

Describe the results you expected:
Docker would be install and I can run containers

Output of docker version:

Client:
 Version:       18.03.0-ce
 API version:   1.37
 Go version:    go1.9.4
 Git commit:    0520e24
 Built: Wed Mar 21 23:18:37 2018
 OS/Arch:       linux/arm
 Experimental:  false
 Orchestrator:  swarm
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

Output of docker info:

root@var-som-mx6:/etc/systemd/system# docker info
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

SystemCtl status:

root@var-som-mx6:~# systemctl status docker.service
● docker.service - Docker Application Container Engine
   Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: e
   Active: failed (Result: exit-code) since Thu 2018-04-05 22:31:30 UTC; 9s ago
     Docs: https://docs.docker.com
  Process: 21027 ExecStart=/usr/bin/dockerd -H fd:// (code=exited, status=1/FAIL
 Main PID: 21027 (code=exited, status=1/FAILURE)

Apr 05 22:31:30 var-som-mx6 systemd[1]: docker.service: Unit entered failed stat
Apr 05 22:31:30 var-som-mx6 systemd[1]: docker.service: Failed with result 'exit
Apr 05 22:31:30 var-som-mx6 systemd[1]: docker.service: Service hold-off time ov
Apr 05 22:31:30 var-som-mx6 systemd[1]: Stopped Docker Application Container Eng
Apr 05 22:31:30 var-som-mx6 systemd[1]: docker.service: Start request repeated t
Apr 05 22:31:30 var-som-mx6 systemd[1]: Failed to start Docker Application Conta
Apr 05 22:31:30 var-som-mx6 systemd[1]: docker.service: Unit entered failed stat
Apr 05 22:31:30 var-som-mx6 systemd[1]: docker.service: Failed with result 'exit
lines 1-15/15 (END)

Additional environment details (AWS, VirtualBox, physical, etc.):

Running on a Variscite iMX6 starter kit

Same problem aoccured after upgrade on ubuntu 17.10.

I'm having the same issue on buster/sid.

This is the installer output:

● 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 2018-06-07 15:41:02 AEST; 18ms ago
Docs: https://docs.docker.com
Process: 30489 ExecStart=/usr/bin/dockerd -H fd:// (code=exited, status=1/FAILURE)
Main PID: 30489 (code=exited, status=1/FAILURE)
dpkg: error processing package docker-ce (--configure):
installed docker-ce package post-installation script subprocess returned error exit status 1

the output from dockerd:

INFO[2018-06-07T15:51:08.201313024+10:00] libcontainerd: started new docker-containerd process pid=3388
INFO[0000] starting containerd module=containerd revision=773c489c9c1b21a6d78b5c538cd395416ec50f88 version=v1.0.3
INFO[0000] loading plugin "io.containerd.content.v1.content"... module=containerd type=io.containerd.content.v1
INFO[0000] loading plugin "io.containerd.snapshotter.v1.btrfs"... module=containerd type=io.containerd.snapshotter.v1
WARN[0000] failed to load plugin io.containerd.snapshotter.v1.btrfs error="path /var/lib/docker/containerd/daemon/io.containerd.snapshotter.v1.btrfs must be a btrfs filesystem to be used with the btrfs snapshotter" module=containerd
INFO[0000] loading plugin "io.containerd.snapshotter.v1.overlayfs"... module=containerd type=io.containerd.snapshotter.v1
INFO[0000] loading plugin "io.containerd.metadata.v1.bolt"... module=containerd type=io.containerd.metadata.v1
WARN[0000] could not use snapshotter btrfs in metadata plugin error="path /var/lib/docker/containerd/daemon/io.containerd.snapshotter.v1.btrfs must be a btrfs filesystem to be used with the btrfs snapshotter" module="containerd/io.containerd.metadata.v1.bolt"
INFO[0000] loading plugin "io.containerd.differ.v1.walking"... module=containerd type=io.containerd.differ.v1
INFO[0000] loading plugin "io.containerd.gc.v1.scheduler"... module=containerd type=io.containerd.gc.v1
INFO[0000] loading plugin "io.containerd.grpc.v1.containers"... module=containerd type=io.containerd.grpc.v1
INFO[0000] loading plugin "io.containerd.grpc.v1.content"... module=containerd type=io.containerd.grpc.v1
INFO[0000] loading plugin "io.containerd.grpc.v1.diff"... module=containerd type=io.containerd.grpc.v1
INFO[0000] loading plugin "io.containerd.grpc.v1.events"... module=containerd type=io.containerd.grpc.v1
INFO[0000] loading plugin "io.containerd.grpc.v1.healthcheck"... module=containerd type=io.containerd.grpc.v1
INFO[0000] loading plugin "io.containerd.grpc.v1.images"... module=containerd type=io.containerd.grpc.v1
INFO[0000] loading plugin "io.containerd.grpc.v1.leases"... module=containerd type=io.containerd.grpc.v1
INFO[0000] loading plugin "io.containerd.grpc.v1.namespaces"... module=containerd type=io.containerd.grpc.v1
INFO[0000] loading plugin "io.containerd.grpc.v1.snapshots"... module=containerd type=io.containerd.grpc.v1
INFO[0000] loading plugin "io.containerd.monitor.v1.cgroups"... module=containerd type=io.containerd.monitor.v1
INFO[0000] loading plugin "io.containerd.runtime.v1.linux"... module=containerd type=io.containerd.runtime.v1
INFO[0000] loading plugin "io.containerd.grpc.v1.tasks"... module=containerd type=io.containerd.grpc.v1
INFO[0000] loading plugin "io.containerd.grpc.v1.version"... module=containerd type=io.containerd.grpc.v1
INFO[0000] loading plugin "io.containerd.grpc.v1.introspection"... module=containerd type=io.containerd.grpc.v1
INFO[0000] serving... address="/var/run/docker/containerd/docker-containerd-debug.sock" module="containerd/debug"
INFO[0000] serving... address="/var/run/docker/containerd/docker-containerd.sock" module="containerd/grpc"
INFO[0000] containerd successfully booted in 0.001508s module=containerd
INFO[2018-06-07T15:51:08.213642708+10:00] [graphdriver] using prior storage driver: overlay2
Error starting daemon: operating system is not supported

I have bolded the error down the bottom as that seems pretty key.