LS1046AFRWY Yocto - Docker issue

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LS1046AFRWY Yocto - Docker issue

1,645 Views
JakubH
Contributor I

Based on the LSDK 2108  and also prevoius one i am not able to build properly docker and run it on image. 

Based on ubuntu i do not have any problems. 

Based on yocto devel - i am adding to the image proper meta's and build os properly. When i write it on sd card the os is booting properly i am in the netwotk but run docker is not possible.

 

Logs from dockerd:


root@DevelLinux:~# dockerd
INFO[2021-10-05T10:41:25.981907535Z] Starting up
INFO[2021-10-05T10:41:25.983587335Z] libcontainerd: started new containerd process pid=752
INFO[2021-10-05T10:41:25.983662895Z] parsed scheme: "unix" module=grpc
INFO[2021-10-05T10:41:25.983690135Z] scheme "unix" not registered, fallback to default scheme module=grpc
INFO[2021-10-05T10:41:25.983736375Z] ccResolverWrapper: sending update to cc: {[{unix:///var/run/docker/containerd/containerd.sock 0 <nil>}] <nil>} module=grpc
INFO[2021-10-05T10:41:25.983768535Z] ClientConn switching balancer to "pick_first" module=grpc
INFO[2021-10-05T10:41:26.038437055Z] starting containerd revision=3b3e9d5f62a114153829f9fbe2781d27b0a2ddac.m version=v1.2.14-3-g3b3e9d5f6.m
INFO[2021-10-05T10:41:26.039060735Z] loading plugin "io.containerd.content.v1.content"... type=io.containerd.content.v1
INFO[2021-10-05T10:41:26.039116015Z] loading plugin "io.containerd.snapshotter.v1.aufs"... type=io.containerd.snapshotter.v1
WARN[2021-10-05T10:41:26.040766415Z] failed to load plugin io.containerd.snapshotter.v1.aufs error="modprobe aufs failed: "modprobe: FATAL: Module aufs not found in directory /lib/modules/5.10.35\n": exit status 1"
INFO[2021-10-05T10:41:26.040825215Z] loading plugin "io.containerd.snapshotter.v1.native"... type=io.containerd.snapshotter.v1
INFO[2021-10-05T10:41:26.040901175Z] loading plugin "io.containerd.snapshotter.v1.overlayfs"... type=io.containerd.snapshotter.v1
INFO[2021-10-05T10:41:26.041091855Z] loading plugin "io.containerd.snapshotter.v1.zfs"... type=io.containerd.snapshotter.v1
INFO[2021-10-05T10:41:26.041472295Z] skip loading plugin "io.containerd.snapshotter.v1.zfs"... type=io.containerd.snapshotter.v1
INFO[2021-10-05T10:41:26.041502175Z] loading plugin "io.containerd.metadata.v1.bolt"... type=io.containerd.metadata.v1
WARN[2021-10-05T10:41:26.041541535Z] could not use snapshotter aufs in metadata plugin error="modprobe aufs failed: "modprobe: FATAL: Module aufs not found in directory /lib/modules/5.10.35\n": exit status 1"
WARN[2021-10-05T10:41:26.041572855Z] 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: skip plugin"
INFO[2021-10-05T10:41:26.041773615Z] loading plugin "io.containerd.differ.v1.walking"... type=io.containerd.differ.v1
INFO[2021-10-05T10:41:26.041844495Z] loading plugin "io.containerd.gc.v1.scheduler"... type=io.containerd.gc.v1
INFO[2021-10-05T10:41:26.041937455Z] loading plugin "io.containerd.service.v1.containers-service"... type=io.containerd.service.v1
INFO[2021-10-05T10:41:26.041992695Z] loading plugin "io.containerd.service.v1.content-service"... type=io.containerd.service.v1
INFO[2021-10-05T10:41:26.042037775Z] loading plugin "io.containerd.service.v1.diff-service"... type=io.containerd.service.v1
INFO[2021-10-05T10:41:26.042080135Z] loading plugin "io.containerd.service.v1.images-service"... type=io.containerd.service.v1
INFO[2021-10-05T10:41:26.042129455Z] loading plugin "io.containerd.service.v1.leases-service"... type=io.containerd.service.v1
INFO[2021-10-05T10:41:26.042171575Z] loading plugin "io.containerd.service.v1.namespaces-service"... type=io.containerd.service.v1
INFO[2021-10-05T10:41:26.042230775Z] loading plugin "io.containerd.service.v1.snapshots-service"... type=io.containerd.service.v1
INFO[2021-10-05T10:41:26.042271695Z] loading plugin "io.containerd.runtime.v1.linux"... type=io.containerd.runtime.v1
INFO[2021-10-05T10:41:26.042484935Z] loading plugin "io.containerd.runtime.v2.task"... type=io.containerd.runtime.v2
INFO[2021-10-05T10:41:26.042598135Z] loading plugin "io.containerd.monitor.v1.cgroups"... type=io.containerd.monitor.v1
INFO[2021-10-05T10:41:26.043593535Z] loading plugin "io.containerd.service.v1.tasks-service"... type=io.containerd.service.v1
INFO[2021-10-05T10:41:26.043653215Z] loading plugin "io.containerd.internal.v1.restart"... type=io.containerd.internal.v1
INFO[2021-10-05T10:41:26.043751095Z] loading plugin "io.containerd.grpc.v1.containers"... type=io.containerd.grpc.v1
INFO[2021-10-05T10:41:26.043793935Z] loading plugin "io.containerd.grpc.v1.content"... type=io.containerd.grpc.v1
INFO[2021-10-05T10:41:26.043836615Z] loading plugin "io.containerd.grpc.v1.diff"... type=io.containerd.grpc.v1
INFO[2021-10-05T10:41:26.043874135Z] loading plugin "io.containerd.grpc.v1.events"... type=io.containerd.grpc.v1
INFO[2021-10-05T10:41:26.043911055Z] loading plugin "io.containerd.grpc.v1.healthcheck"... type=io.containerd.grpc.v1
INFO[2021-10-05T10:41:26.044002895Z] loading plugin "io.containerd.grpc.v1.images"... type=io.containerd.grpc.v1
INFO[2021-10-05T10:41:26.044043975Z] loading plugin "io.containerd.grpc.v1.leases"... type=io.containerd.grpc.v1
INFO[2021-10-05T10:41:26.044080855Z] loading plugin "io.containerd.grpc.v1.namespaces"... type=io.containerd.grpc.v1
INFO[2021-10-05T10:41:26.044127655Z] loading plugin "io.containerd.internal.v1.opt"... type=io.containerd.internal.v1
INFO[2021-10-05T10:41:26.044209695Z] loading plugin "io.containerd.grpc.v1.snapshots"... type=io.containerd.grpc.v1
INFO[2021-10-05T10:41:26.044253495Z] loading plugin "io.containerd.grpc.v1.tasks"... type=io.containerd.grpc.v1
INFO[2021-10-05T10:41:26.044295695Z] loading plugin "io.containerd.grpc.v1.version"... type=io.containerd.grpc.v1
INFO[2021-10-05T10:41:26.044355295Z] loading plugin "io.containerd.grpc.v1.introspection"... type=io.containerd.grpc.v1
INFO[2021-10-05T10:41:26.044753735Z] serving... address="/var/run/docker/containerd/containerd-debug.sock"
INFO[2021-10-05T10:41:26.044875255Z] serving... address="/var/run/docker/containerd/containerd.sock"
INFO[2021-10-05T10:41:26.044918815Z] containerd successfully booted in 0.007455s
INFO[2021-10-05T10:41:26.055542895Z] parsed scheme: "unix" module=grpc
INFO[2021-10-05T10:41:26.055594295Z] scheme "unix" not registered, fallback to default scheme module=grpc
INFO[2021-10-05T10:41:26.055638975Z] ccResolverWrapper: sending update to cc: {[{unix:///var/run/docker/containerd/containerd.sock 0 <nil>}] <nil>} module=grpc
INFO[2021-10-05T10:41:26.055665615Z] ClientConn switching balancer to "pick_first" module=grpc
INFO[2021-10-05T10:41:26.056803775Z] parsed scheme: "unix" module=grpc
INFO[2021-10-05T10:41:26.056851295Z] scheme "unix" not registered, fallback to default scheme module=grpc
INFO[2021-10-05T10:41:26.056892975Z] ccResolverWrapper: sending update to cc: {[{unix:///var/run/docker/containerd/containerd.sock 0 <nil>}] <nil>} module=grpc
INFO[2021-10-05T10:41:26.056930775Z] ClientConn switching balancer to "pick_first" module=grpc
INFO[2021-10-05T10:41:26.092097535Z] [graphdriver] using prior storage driver: overlay2
WARN[2021-10-05T10:41:26.099400455Z] Your kernel does not support cgroup cfs period
WARN[2021-10-05T10:41:26.099436255Z] Your kernel does not support cgroup cfs quotas
WARN[2021-10-05T10:41:26.099456975Z] Your kernel does not support cgroup rt period
WARN[2021-10-05T10:41:26.099477055Z] Your kernel does not support cgroup rt runtime
WARN[2021-10-05T10:41:26.099496655Z] Your kernel does not support cgroup blkio weight
WARN[2021-10-05T10:41:26.099516095Z] Your kernel does not support cgroup blkio weight_device
INFO[2021-10-05T10:41:26.099783655Z] Loading containers: start.
INFO[2021-10-05T10:41:26.172071535Z] 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[2021-10-05T10:41:26.190358615Z] stopping event stream following graceful shutdown error="<nil>" module=libcontainerd namespace=moby
INFO[2021-10-05T10:41:26.190890215Z] stopping healthcheck following graceful shutdown module=libcontainerd
INFO[2021-10-05T10:41:26.190906135Z] stopping event stream following graceful shutdown error="context canceled" module=libcontainerd namespace=plugins.moby
failed to start 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 v1.8.4 (legacy): Couldn't load match `addrtype':No such file or directory

Try `iptables -h' or 'iptables --help' for more information.
(exit status 2)

0 Kudos
3 Replies

1,612 Views
JakubH
Contributor I

JakubH_0-1634286741675.pngJakubH_1-1634286750498.png

 

How to configure kernel?

I see that from meta-virtualization there are some kernel configs enabled. 

0 Kudos

1,592 Views
yipingwang
NXP TechSupport
NXP TechSupport

Please run the following command to configure the missing Linux Kernel configuration.

$ flex-builder -c linux:custom -a arm64

Then run the following command to rebuild Linux Kernel image.
flex-builder -c linux -a arm64

Then run the following command to generate boot partition.

$ flex-builder -i mkbootpartition

0 Kudos

1,618 Views
yipingwang
NXP TechSupport
NXP TechSupport

It seems that there is problem with Linux Kernel configuration.

Please run the following script on your target board, then configure and rebuild your Linux kernel as it suggests.

https://github.com/moby/moby/blob/master/contrib/check-config.sh

Tags (1)
0 Kudos