Hello,
I followed the steps detailed in this link (https://developer.toradex.com/knowledge-base/build-torizoncore#Building_Torizon_Tools_Container) and afterwards, I ran bitbake -c menuconfig virtual/kernel
so I could add one driver to the image. After that, i ran bitbake -f -c compile virtual/kernel
. Finally, again bitbake torizon-core-docker
.
After running bitbake torizon-core-docker
I took the deploy directory to the EasyInstaller to install the generated image into my SoM. Flashing went ok. Booting went normally (kernel 5.3 instead of 4.20), but when I want to run any docker container, I get the following:
colibri-imx6-05097180:~$ sudo docker pull torizon/arm32v7-debian-dev-tools
Using default tag: latest
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
I thought that was weird and tried several things:
colibri-imx6-05097180:~$ systemctl status docker.service
● docker.service - Docker Application Container Engine
Loaded: loaded (/usr/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Thu 2019-11-07 17:13:17 UTC; 15min ago
Docs: https://docs.docker.com
Process: 791 ExecStart=/usr/bin/dockerd -H fd:// (code=exited, status=1/FAILURE)
Main PID: 791 (code=exited, status=1/FAILURE)
Then, I tried:
colibri-imx6-05097180:~$ sudo dockerd
Password:
INFO[2019-11-07T21:14:29.385845606Z] Starting up
INFO[2019-11-07T21:14:29.400436983Z] libcontainerd: started new containerd process pid=1560
INFO[2019-11-07T21:14:29.400915274Z] parsed scheme: "unix" module=grpc
INFO[2019-11-07T21:14:29.401106924Z] scheme "unix" not registered, fallback to default scheme module=grpc
INFO[2019-11-07T21:14:29.401378567Z] ccResolverWrapper: sending update to cc: {[{unix:///var/run/docker/containerd/containerd.sock 0 <nil>}] } module=grpc
INFO[2019-11-07T21:14:29.401524887Z] ClientConn switching balancer to "pick_first" module=grpc
INFO[2019-11-07T21:14:29.401880189Z] pickfirstBalancer: HandleSubConnStateChange: 0x59c1120, CONNECTING module=grpc
INFO[2019-11-07T21:14:29.540352955Z] starting containerd revision=fd103cb716352c7e19768e4fed057f71d68902a0.m version=v1.2.7-11-gfd103cb.m
INFO[2019-11-07T21:14:29.542654752Z] loading plugin "io.containerd.content.v1.content"... type=io.containerd.content.v1
INFO[2019-11-07T21:14:29.542928394Z] loading plugin "io.containerd.snapshotter.v1.aufs"... type=io.containerd.snapshotter.v1
WARN[2019-11-07T21:14:29.551769280Z] failed to load plugin io.containerd.snapshotter.v1.aufs error="modprobe aufs failed: "modprobe: FATAL: Module aufs not found in directory /lib/modules/5.3.6-torizon-standard\n": exit status 1"
INFO[2019-11-07T21:14:29.552491549Z] loading plugin "io.containerd.snapshotter.v1.native"... type=io.containerd.snapshotter.v1
INFO[2019-11-07T21:14:29.553142492Z] loading plugin "io.containerd.snapshotter.v1.overlayfs"... type=io.containerd.snapshotter.v1
INFO[2019-11-07T21:14:29.554076076Z] loading plugin "io.containerd.snapshotter.v1.zfs"... type=io.containerd.snapshotter.v1
WARN[2019-11-07T21:14:29.556022238Z] failed to load plugin io.containerd.snapshotter.v1.zfs error="path /var/lib/docker/containerd/daemon/io.containerd.snapshotter.v1.zfs must be a zfs filesystem to be used with the zfs snapshotter"
INFO[2019-11-07T21:14:29.556527859Z] loading plugin "io.containerd.metadata.v1.bolt"... type=io.containerd.metadata.v1
WARN[2019-11-07T21:14:29.556985819Z] could not use snapshotter aufs in metadata plugin error="modprobe aufs failed: "modprobe: FATAL: Module aufs not found in directory /lib/modules/5.3.6-torizon-standard\n": exit status 1"
WARN[2019-11-07T21:14:29.557441445Z] could not use snapshotter zfs in metadata plugin error="path /var/lib/docker/containerd/daemon/io.containerd.snapshotter.v1.zfs must be a zfs filesystem to be used with the zfs snapshotter"
INFO[2019-11-07T21:14:29.558464688Z] loading plugin "io.containerd.differ.v1.walking"... type=io.containerd.differ.v1
INFO[2019-11-07T21:14:29.559005641Z] loading plugin "io.containerd.gc.v1.scheduler"... type=io.containerd.gc.v1
INFO[2019-11-07T21:14:29.559573924Z] loading plugin "io.containerd.service.v1.containers-service"... type=io.containerd.service.v1
INFO[2019-11-07T21:14:29.560339523Z] loading plugin "io.containerd.service.v1.content-service"... type=io.containerd.service.v1
INFO[2019-11-07T21:14:29.560867809Z] loading plugin "io.containerd.service.v1.diff-service"... type=io.containerd.service.v1
INFO[2019-11-07T21:14:29.561811059Z] loading plugin "io.containerd.service.v1.images-service"... type=io.containerd.service.v1
INFO[2019-11-07T21:14:29.562112366Z] loading plugin "io.containerd.service.v1.leases-service"... type=io.containerd.service.v1
INFO[2019-11-07T21:14:29.562373676Z] loading plugin "io.containerd.service.v1.namespaces-service"... type=io.containerd.service.v1
INFO[2019-11-07T21:14:29.562673317Z] loading plugin "io.containerd.service.v1.snapshots-service"... type=io.containerd.service.v1
INFO[2019-11-07T21:14:29.562919961Z] loading plugin "io.containerd.runtime.v1.linux"... type=io.containerd.runtime.v1
INFO[2019-11-07T21:14:29.563733223Z] loading plugin "io.containerd.runtime.v2.task"... type=io.containerd.runtime.v2
INFO[2019-11-07T21:14:29.564252844Z] loading plugin "io.containerd.monitor.v1.cgroups"... type=io.containerd.monitor.v1
INFO[2019-11-07T21:14:29.568109503Z] loading plugin "io.containerd.service.v1.tasks-service"... type=io.containerd.service.v1
INFO[2019-11-07T21:14:29.568396144Z] loading plugin "io.containerd.internal.v1.restart"... type=io.containerd.internal.v1
INFO[2019-11-07T21:14:29.568760779Z] loading plugin "io.containerd.grpc.v1.containers"... type=io.containerd.grpc.v1
INFO[2019-11-07T21:14:29.568972760Z] loading plugin "io.containerd.grpc.v1.content"... type=io.containerd.grpc.v1
INFO[2019-11-07T21:14:29.569174076Z] loading plugin "io.containerd.grpc.v1.diff"... type=io.containerd.grpc.v1
INFO[2019-11-07T21:14:29.569366392Z] loading plugin "io.containerd.grpc.v1.events"... type=io.containerd.grpc.v1
INFO[2019-11-07T21:14:29.569547043Z] loading plugin "io.containerd.grpc.v1.healthcheck"... type=io.containerd.grpc.v1
INFO[2019-11-07T21:14:29.569726693Z] loading plugin "io.containerd.grpc.v1.images"... type=io.containerd.grpc.v1
INFO[2019-11-07T21:14:29.569971672Z] loading plugin "io.containerd.grpc.v1.leases"... type=io.containerd.grpc.v1
INFO[2019-11-07T21:14:29.570168988Z] loading plugin "io.containerd.grpc.v1.namespaces"... type=io.containerd.grpc.v1
INFO[2019-11-07T21:14:29.570350638Z] loading plugin "io.containerd.internal.v1.opt"... type=io.containerd.internal.v1
INFO[2019-11-07T21:14:29.570770268Z] loading plugin "io.containerd.grpc.v1.snapshots"... type=io.containerd.grpc.v1
INFO[2019-11-07T21:14:29.570990248Z] loading plugin "io.containerd.grpc.v1.tasks"... type=io.containerd.grpc.v1
INFO[2019-11-07T21:14:29.571185564Z] loading plugin "io.containerd.grpc.v1.version"... type=io.containerd.grpc.v1
INFO[2019-11-07T21:14:29.571363215Z] loading plugin "io.containerd.grpc.v1.introspection"... type=io.containerd.grpc.v1
INFO[2019-11-07T21:14:29.573640348Z] serving... address="/var/run/docker/containerd/containerd-debug.sock"
INFO[2019-11-07T21:14:29.574134971Z] serving... address="/var/run/docker/containerd/containerd.sock"
INFO[2019-11-07T21:14:29.574338953Z] containerd successfully booted in 0.037456s
INFO[2019-11-07T21:14:29.614512737Z] pickfirstBalancer: HandleSubConnStateChange: 0x59c1120, READY module=grpc
INFO[2019-11-07T21:14:29.628655487Z] parsed scheme: "unix" module=grpc
INFO[2019-11-07T21:14:29.630758968Z] scheme "unix" not registered, fallback to default scheme module=grpc
INFO[2019-11-07T21:14:29.631071607Z] ccResolverWrapper: sending update to cc: {[{unix:///var/run/docker/containerd/containerd.sock 0 <nil>}] } module=grpc
INFO[2019-11-07T21:14:29.631238592Z] ClientConn switching balancer to "pick_first" module=grpc
INFO[2019-11-07T21:14:29.638609608Z] pickfirstBalancer: HandleSubConnStateChange: 0x5534ea0, CONNECTING module=grpc
INFO[2019-11-07T21:14:29.645632987Z] pickfirstBalancer: HandleSubConnStateChange: 0x5534ea0, READY module=grpc
INFO[2019-11-07T21:14:29.648934695Z] parsed scheme: "unix" module=grpc
INFO[2019-11-07T21:14:29.649503645Z] scheme "unix" not registered, fallback to default scheme module=grpc
INFO[2019-11-07T21:14:29.649983603Z] ccResolverWrapper: sending update to cc: {[{unix:///var/run/docker/containerd/containerd.sock 0 <nil>}] } module=grpc
INFO[2019-11-07T21:14:29.650354237Z] ClientConn switching balancer to "pick_first" module=grpc
INFO[2019-11-07T21:14:29.651109837Z] pickfirstBalancer: HandleSubConnStateChange: 0x55350a0, CONNECTING module=grpc
INFO[2019-11-07T21:14:29.655354128Z] pickfirstBalancer: HandleSubConnStateChange: 0x55350a0, READY module=grpc
INFO[2019-11-07T21:14:29.677676823Z] [graphdriver] using prior storage driver: overlay2
WARN[2019-11-07T21:14:29.689316461Z] Your kernel does not support cgroup rt period
WARN[2019-11-07T21:14:29.689803418Z] Your kernel does not support cgroup rt runtime
WARN[2019-11-07T21:14:29.690147721Z] Your kernel does not support cgroup blkio weight
WARN[2019-11-07T21:14:29.690452694Z] Your kernel does not support cgroup blkio weight_device
INFO[2019-11-07T21:14:29.691868902Z] Loading containers: start.
WARN[2019-11-07T21:14:29.825139128Z] Running modprobe bridge br_netfilter failed with message: modprobe: ERROR: could not insert 'bridge': Invalid argument
modprobe: ERROR: could not insert 'br_netfilter': Invalid argument
insmod /lib/modules/5.3.6-torizon-standard/kernel/net/bridge/bridge.ko
insmod /lib/modules/5.3.6-torizon-standard/kernel/net/bridge/bridge.ko
, error: exit status 1
INFO[2019-11-07T21:14:30.343304348Z] 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
INFO[2019-11-07T21:14:30.473731491Z] stopping event stream following graceful shutdown error="<nil>" module=libcontainerd namespace=moby
INFO[2019-11-07T21:14:30.476510246Z] stopping healthcheck following graceful shutdown module=libcontainerd
INFO[2019-11-07T21:14:30.476779888Z] stopping event stream following graceful shutdown error="context canceled" module=libcontainerd namespace=plugins.moby
INFO[2019-11-07T21:14:30.479892947Z] pickfirstBalancer: HandleSubConnStateChange: 0x55350a0, TRANSIENT_FAILURE module=grpc
INFO[2019-11-07T21:14:30.480084930Z] pickfirstBalancer: HandleSubConnStateChange: 0x55350a0, CONNECTING module=grpc
failed to start daemon: Error initializing network controller: Error creating default "bridge" network: package not installed
In several posts I found many corrected this by just rebooting, but was not my case. Any ideas?
Other thing is that I created a wired.network file in /etc/systemd/network/ to configure a static IP address over eth0. This is not working and every boot I get other address from DHCP, until I run sudo systemctl restart systemd-networkd.services
when it finally sets the IP address I defined inside wired.network. This is how I have configured my network settings on the default Torizon image. I do not know why this happens.
Any and all help will be appreciated.