08-31-2020 04:46 AM
I install PYNQ-z2 official system on SDcard and I want use docker ,but I find it unable to start docker.service
here is dockerd error:
INFO[2020-08-31T11:36:04.825530403Z] libcontainerd: started new docker-containerd process pid=4408
INFO[0000] starting containerd module=containerd revision=9b55aab90508bd389d7654c4baf173a981477d55 version=docker-17.12.1-ce
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.024443s module=containerd
INFO[2020-08-31T11:36:05.003411891Z] [graphdriver] using prior storage driver: overlay2
INFO[2020-08-31T11:36:05.023863580Z] Graph migration to content-addressability took 0.00 seconds
WARN[2020-08-31T11:36:05.025258834Z] Your kernel does not support swap memory limit
WARN[2020-08-31T11:36:05.025807443Z] Unable to find cpu cgroup in mounts
WARN[2020-08-31T11:36:05.025917491Z] Unable to find blkio cgroup in mounts
WARN[2020-08-31T11:36:05.026006538Z] Unable to find cpuset cgroup in mounts
WARN[2020-08-31T11:36:05.026454265Z] mountpoint for pids not found
INFO[2020-08-31T11:36:05.029816314Z] Loading containers: start.
WARN[2020-08-31T11:36:05.040963114Z] Running modprobe bridge br_netfilter failed with message: modprobe: WARNING: Module br_netfilter not found in directory /lib/modules/4.19.0-xilinx-v2019.1
, error: exit status 1
WARN[2020-08-31T11:36:05.050340201Z] Running modprobe nf_nat failed with message: `modprobe: WARNING: Module nf_nat not found in directory /lib/modules/4.19.0-xilinx-v2019.1`, error: exit status 1
WARN[2020-08-31T11:36:05.059869329Z] Running modprobe xt_conntrack failed with message: `modprobe: WARNING: Module xt_conntrack not found in directory /lib/modules/4.19.0-xilinx-v2019.1`, error: exit status 1
Error starting daemon: Error initializing network controller: error obtaining controller instance: failed to create NAT chain: iptables failed: iptables -t nat -N DOCKER: modprobe: FATAL: Module ip_tables not found in directory /lib/modules/4.19.0-xilinx-v2019.1
iptables v1.6.1: can't initialize iptables table `nat': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
(exit status 3)
I found that docker need NAT module ,but Linux pynq 4.19.0-xilinx-v2019.1 lack NAT module .
my current plan is use petalinux to add NAT module on xilinx .
is there exist anyone have experience to tell me ? thanks!
08-31-2020 02:16 PM
Hi @hunter
FYI.
As you may know, at least, docker requires snapd (snappy daemon), too.
So you need to build snapd and some snappy tools if you use docker on your system.
https://github.com/snapcore/snapd
I hope it helps.
Best regards,