0

When I install docker and try to run it, sudo systemctl start docker, it says it can't run as the title says.(Not WSL)

So when I run it with the sudo service docker start command, it turns off again after a second

Furthermore, sudo dockerd says that the modules bridge, br_netfilter, and ip_tables are installed but missing. iptables --wait -L -n command also gives an error...

The Docker daemon failed to initialize the network controller, which seems to be related to the missing modules and iptables configuration issues mentioned earlier


my linux release is

cat /etc/lsb-release
DISTRIB_ID=Ubuntu
distrib_release=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION="Ubuntu 20.04.6 LTS"
6
  • Hmm... so what is your init system? Perhaps cat /proc/1/cmdline or xargs -0a /proc/1/cmdline would be helpful Commented Feb 28 at 2:55
  • I'm not sure if I typed the commands correctly, but they both output /bin/bash Commented Feb 28 at 4:02
  • So that suggests your system was booted via something like init=/bin/bash from the grub recovery menu? Commented Feb 28 at 12:45
  • PID 1 process seems to run /bin/bash instead of systemd or init Commented Feb 29 at 0:54
  • Yeah I can see that - I'm just wondering how that's possible. Is /sbin/init actually a symlink to /bin/bash, or is the normal init being overridden via grub? Commented Feb 29 at 1:15

0

You must log in to answer this question.

Browse other questions tagged .