[meta-virtualization] Docker daemon not starting on Raspberry Pi 3

Bruce Ashfield bruce.ashfield at gmail.com
Thu Aug 23 05:17:51 PDT 2018


On Tue, Aug 21, 2018 at 12:49 PM, Apetroaie-Cristea M.
<mac1g12 at soton.ac.uk> wrote:
> Hello,
>
> I am trying to build a docker enabled image for Raspberry pi using the
> meta-virtualization layer, sumo branch. The image builds, but when I try to
> run docker on the pi I get the following error:
>
> Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the
> docker daemon running?
>
>
> When running $dockerd, I get the following errors:
>
> root at raspberrypi3:~# dockerd
> INFO[2018-08-21T16:42:43.735133756Z] libcontainerd: started new
> docker-containerd process  pid=1281
> INFO[0000] starting containerd                           module=containerd
> revision=cfd04396dc68220d1cecbe686a6cc3aa5ce3667c.m version=v1.0.2.m
> INFO[0000] loading plugin "io.containerd.content.v1.content"...
> module=containerd type=io.containerd.content.v1
> 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
> 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.023991s   module=containerd
> ERRO[2018-08-21T16:42:43.989165300Z] Failed to built-in GetDriver graph
> btrfs /var/lib/docker
> ERRO[2018-08-21T16:42:44.002937386Z] 'overlay' not found as a supported
> filesystem on this host. Please ensure kernel is new enough and has overlay
> support loaded.
> ERRO[2018-08-21T16:42:44.025624033Z] 'overlay' not found as a supported
> filesystem on this host. Please ensure kernel is new enough and has overlay
> support loaded.
> ERRO[2018-08-21T16:42:44.026525661Z] Failed to built-in GetDriver graph
> devicemapper /var/lib/docker
> INFO[2018-08-21T16:42:44.054916094Z] Graph migration to
> content-addressability took 0.00 seconds
> WARN[2018-08-21T16:42:44.056984615Z] Your kernel does not support cgroup
> memory limit
> WARN[2018-08-21T16:42:44.057659885Z] Your kernel does not support cgroup cfs
> period
> WARN[2018-08-21T16:42:44.058345781Z] Your kernel does not support cgroup cfs
> quotas
> WARN[2018-08-21T16:42:44.058842247Z] Your kernel does not support cgroup rt
> period
> WARN[2018-08-21T16:42:44.059354130Z] Your kernel does not support cgroup rt
> runtime
> WARN[2018-08-21T16:42:44.060948686Z] mountpoint for pids not found
> INFO[2018-08-21T16:42:44.064498271Z] Loading containers: start.
> WARN[2018-08-21T16:42:44.077446385Z] Running modprobe bridge br_netfilter
> failed with message: modprobe: WARNING: Module br_netfilter not found in
> directory /lib/modules/4.14.39
> , error: exit status 1
> WARN[2018-08-21T16:42:44.570023626Z] Could not load necessary modules for
> Conntrack: Running modprobe nf_conntrack_netlink failed with message:
> `modprobe: WARNING: Module nf_conntrack_netlink not found in directory
> /lib/modules/4.14.39`, error: exit status 1
> INFO[2018-08-21T16:42:44.571706412Z] Default bridge (docker0) is assigned
> with an IP address 172.17.0.0/16. Daemon option --bip can be used to set a
> preferred IP address
> Error starting daemon: Error initializing network controller: Error creating
> default "bridge" network: Failed to program NAT chain: Failed to inject
> DOCKER in PREROUTING chain: iptables failed: iptables --wait -t nat -A
> PREROUTING -m addrtype --dst-type LOCAL -j DOCKER: iptables: No
> chain/target/match by that name.

>From that output, your kernel isn't configured properly to support the
daemon. If you aren't using a linux-yocto variant, you'll need to make
sure it is properly configured in your own defconfig (or whatever you
use).

If you are using something that inherits linux-yocto fragment support,
you can use the docker fragment in the meta-virt layer to add the
configs you need.

Bruce

>  (exit status 1)
>
>
> Does anyone know how to solve this problem? Thank you!
>
> --
> _______________________________________________
> meta-virtualization mailing list
> meta-virtualization at yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-virtualization
>



-- 
"Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end"


More information about the meta-virtualization mailing list