Hello,
My docker service is not starting and is not returning much when it fails. It tries to start, acts like it's going to start, but then stops without much in the error messages. Looks like it may be an issue with "iptables v1.8.9 (legacy): can't initialize iptables table `nat': Table does not exist" based on the logs I could find but I am unsure how to overcome this.
Server is a Dell R510 with 2*X5670 CPU, 128G RAM, and a DAS. It is not overclocked. Only a few dockers are publicly accessible on a bridge.
I have tried UnRaid 6.12.2, 6.12.3 and lately 6.12.8. The problem started when I upgraded to 6.12.2 from 6.11.5. On 6.11.x the docker service ran many containers just fine but fails to start the docker service its-self on any 6.12.x upgrade.
Symptoms:
1) On the Docker web GUI tab the message "Docker Service failed to start." is displayed in a yellow box without further errors.
2) appropriate snippet of Syslog says:
Quote
Jul 17 16:57:51 Asgard kernel: BTRFS info (device loop2): enabling ssd optimizations
Jul 17 16:57:51 Asgard root: Resize device id 1 (/dev/loop2) from 25.00GiB to max
Jul 17 16:57:51 Asgard emhttpd: shcmd (175): /etc/rc.d/rc.docker start
Jul 17 16:57:51 Asgard root: starting dockerd ...
Jul 17 16:57:51 Asgard avahi-daemon[7186]: Server startup complete. Host name is Asgard.local. Local service cookie is 113882372.
Jul 17 16:57:52 Asgard avahi-daemon[7186]: Service "Asgard" (/services/ssh.service) successfully established.
Jul 17 16:57:52 Asgard avahi-daemon[7186]: Service "Asgard" (/services/smb.service) successfully established.
Jul 17 16:57:52 Asgard avahi-daemon[7186]: Service "Asgard" (/services/sftp-ssh.service) successfully established.
Jul 17 16:58:24 Asgard emhttpd: shcmd (178): umount /var/lib/docker
3) Attempting a CLI start returns
'/etc/rc.d/rc.docker start
no image mounted at /var/lib/docker'
or
'docker network ls
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?'
4) /var/log/docker.log shows several identical messages
Quote:~# cat /var/log/docker.log
time="2023-07-17T16:57:54-07:00" level=warning msg="containerd config version `1` has been deprecated and will be removed in containerd v2.0, please switch to version `2`, see https://github.com/containerd/containerd/blob/main/docs/PLUGINS.md#version-header"
failed to start daemon: Error initializing network controller: error obtaining controller instance: failed to create NAT chain DOCKER: iptables failed: iptables --wait -t nat -N DOCKER: iptables v1.8.9 (legacy): 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)
5) Running `iptables --wait -t nat -N DOCKER` does indeed fail with the error message above
"iptables v1.8.9 (legacy): can't initialize iptables table `nat': Table does not exist (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded."
Attempted fixes:
1) Removed docker.img and let the system recreate it.
2) Tried several GUI docker setting options like macvlan and ipvlan, not preserving user defined networks, a larger vdisk size, btrfs vs directory, and a 5 minutes timeout just so it may get over a hang.
3) Cleaned out my go file of things not needed due to various upgrades and plugins.
4) Rebooted.
5) Installed the newer update and rebooted.
6) Manually ran: `iptables --wait -N DOCKER` and attempted to start the docker service with cli /etc/rc.d/rc.docker start
7) I reset my network to default by moving /boot/custom/network.cfg to network.cfg.bak and rebooted the server.
8.) Reverted to 6.11.5 where docker works to move dockers off of my custom network and then removed the custom network in CLI, undid preserve custom network in the GUI, then updated unraid to 6.12.8 only to get the same error.
However no matter what I attempt I am unable to make a difference in the symptom and unable to get docker to start in version 6.12.X.
Reverting to 6.11.5 and docker starts again.
Please advise,
Recommended Comments
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.