Docker Community Forums

Share and learn in the Docker community.

Failed to start Docker

my Docker won’t start
i’m on Raspberry Pi 4
don’t know what to say more

docker --version

Docker version 19.03.8, build afacb8b

uname -a

Linux kalipso 5.4.35-v7l+ #1314 SMP Fri May 1 17:47:34 BST 2020 armv7l GNU/Linux

journalctl -f -u docker

May 07 14:59:22 kalipso systemd[1]: Starting Docker Application Container Engine...
May 07 14:59:22 kalipso dockerd[6673]: time="2020-05-07T14:59:22.355801513+01:00" level=info msg="Starting up"
May 07 14:59:22 kalipso dockerd[6673]: time="2020-05-07T14:59:22.358849995+01:00" level=info msg="parsed scheme: \"unix\"" module=grpc
May 07 14:59:22 kalipso dockerd[6673]: time="2020-05-07T14:59:22.358912013+01:00" level=info msg="scheme \"unix\" not registered, fallback to default scheme" module=grpc
May 07 14:59:22 kalipso dockerd[6673]: time="2020-05-07T14:59:22.358982160+01:00" level=info msg="ccResolverWrapper: sending update to cc: {[{unix:///run/containerd/containerd.sock 0  <nil>}] <nil>}" module=grpc
May 07 14:59:22 kalipso dockerd[6673]: time="2020-05-07T14:59:22.359034511+01:00" level=info msg="ClientConn switching balancer to \"pick_first\"" module=grpc
May 07 14:59:22 kalipso dockerd[6673]: time="2020-05-07T14:59:22.362103327+01:00" level=info msg="parsed scheme: \"unix\"" module=grpc
May 07 14:59:22 kalipso dockerd[6673]: time="2020-05-07T14:59:22.362695838+01:00" level=info msg="scheme \"unix\" not registered, fallback to default scheme" module=grpc
May 07 14:59:22 kalipso dockerd[6673]: time="2020-05-07T14:59:22.363111389+01:00" level=info msg="ccResolverWrapper: sending update to cc: {[{unix:///run/containerd/containerd.sock 0  <nil>}] <nil>}" module=grpc
May 07 14:59:22 kalipso dockerd[6673]: time="2020-05-07T14:59:22.363550902+01:00" level=info msg="ClientConn switching balancer to \"pick_first\"" module=grpc
May 07 14:59:22 kalipso dockerd[6673]: time="2020-05-07T14:59:22.853113590+01:00" level=info msg="[graphdriver] using prior storage driver: overlay2"
May 07 14:59:23 kalipso dockerd[6673]: time="2020-05-07T14:59:23.216243775+01:00" level=warning msg="Your kernel does not support cgroup memory limit"
May 07 14:59:23 kalipso dockerd[6673]: time="2020-05-07T14:59:23.216323089+01:00" level=warning msg="Your kernel does not support cgroup cfs period"
May 07 14:59:23 kalipso dockerd[6673]: time="2020-05-07T14:59:23.216354773+01:00" level=warning msg="Your kernel does not support cgroup cfs quotas"
May 07 14:59:23 kalipso dockerd[6673]: time="2020-05-07T14:59:23.216382569+01:00" level=warning msg="Your kernel does not support cgroup rt period"
May 07 14:59:23 kalipso dockerd[6673]: time="2020-05-07T14:59:23.216410995+01:00" level=warning msg="Your kernel does not support cgroup rt runtime"
May 07 14:59:23 kalipso dockerd[6673]: time="2020-05-07T14:59:23.216438624+01:00" level=warning msg="Your kernel does not support cgroup blkio weight"
May 07 14:59:23 kalipso dockerd[6673]: time="2020-05-07T14:59:23.216466513+01:00" level=warning msg="Your kernel does not support cgroup blkio weight_device"
May 07 14:59:23 kalipso dockerd[6673]: time="2020-05-07T14:59:23.217193263+01:00" level=info msg="Loading containers: start."
May 07 14:59:23 kalipso dockerd[6673]: time="2020-05-07T14:59:23.241086588+01:00" level=error msg="Failed to load container mount aa204f6bde608ecebd55413fcb919aecb154d996e70874f11e682b98a6c17d1d: mount does not exist"
May 07 14:59:24 kalipso dockerd[6673]: time="2020-05-07T14:59:24.351700296+01:00" level=warning msg="Running iptables --wait -t nat -L -n failed with message: `iptables: Operation not supported.`, error: exit status 1"
May 07 14:59:24 kalipso dockerd[6673]: time="2020-05-07T14:59:24.877712658+01:00" level=info msg="stopping event stream following graceful shutdown" error="<nil>" module=libcontainerd namespace=moby
May 07 14:59:24 kalipso dockerd[6673]: failed to start daemon: Error initializing network controller: error obtaining controller instance: failed to create NAT chain DOCKER: iptables failed: iptables -t nat -N DOCKER: iptables: Operation not supported.
May 07 14:59:24 kalipso dockerd[6673]:  (exit status 1)
May 07 14:59:24 kalipso systemd[1]: docker.service: Main process exited, code=exited, status=1/FAILURE
May 07 14:59:24 kalipso systemd[1]: docker.service: Failed with result 'exit-code'.
May 07 14:59:24 kalipso systemd[1]: Failed to start Docker Application Container Engine.
May 07 14:59:27 kalipso systemd[1]: docker.service: Service RestartSec=2s expired, scheduling restart.
May 07 14:59:27 kalipso systemd[1]: docker.service: Scheduled restart job, restart counter is at 3.
May 07 14:59:27 kalipso systemd[1]: Stopped Docker Application Container Engine.
May 07 14:59:27 kalipso systemd[1]: docker.service: Start request repeated too quickly.
May 07 14:59:27 kalipso systemd[1]: docker.service: Failed with result 'exit-code'.
May 07 14:59:27 kalipso systemd[1]: Failed to start Docker Application Container Engine.

It seems like your kernel version is old. Upgrade it
if you use Debian this link can help you to fix problem https://wiki.debian.org/HowToUpgradeKernel

5.4.35 is the newest available for today (2020-05-07) from Raspberry Pi foundation
i would prefer not to mess too much
maybe i should provide more logs but from where

downgrade by this command helped

rpi-update e1050e94821a70b2e4c72b318d6c6c968552e9a2

now i’m on kernel 4.19.118

the hash is from this repo https://github.com/Hexxeh/rpi-firmware