7

I have recently installed WSL2 and installed Ubuntu from Microsoft Store.When i run docker using

Sudo service docker start, i get below message

Cannot connect to the Docker daemon. Is the docker daemon running on this host?

I followed steps as per this Answer and did below

    sudo groupadd docker
sudo usermod -aG docker $(whoami)

But still cant start docker..when checking Docker logs, i could see below

CONNECTING" module=grpc Error starting daemon: Error initializing network controller: error obtaining controller instance: failed to create NAT chain DOCKER: iptables failed: iptables -t nat -N DOCKER: 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) `

TheGameiswar
  • 25,396
  • 5
  • 48
  • 82

2 Answers2

17

I have tried a lot of steps based on the error below

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) `

But Starting Terminal as administrator worked.Even though you run

sudo service docker start

The Terminal should be launched as Admin

Victor Alves
  • 6,103
  • 1
  • 11
  • 15
TheGameiswar
  • 25,396
  • 5
  • 48
  • 82
0

There is a great guide here which gives some up to date instructions and some prerequisites on using WSL 2 and the new docker desktop.

Damo
  • 3,355
  • 2
  • 23
  • 41