HA dev setup guide not working

Followed this guide,

Upgraded win 10 to 10.0.19041.2081 - no errors.

Followed wsl2 guide
https://docs.microsoft.com/en-gb/windows/wsl/wsl2-install
Installed wsl2 kernel package (wsl_update_x64.msi) - no errors.
Set default wsl (wsl --set-default-version 2) - no errors

Installed Debian buster from store - no errors

Installed docker following the “Debian - install from repository” section

Got this when trying to run sudo docker run hello-world

root@LianLiPC-7NB:/home/daz# sudo docker run hello-world
docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?.
See 'docker run --help'.
root@LianLiPC-7NB:/home/daz# dorckerd
bash: dorckerd: command not found
root@LianLiPC-7NB:/home/daz# sudo dockerd
INFO[2020-04-28T00:34:00.237125200+01:00] Starting up
INFO[2020-04-28T00:34:00.239910800+01:00] libcontainerd: started new containerd process  pid=8063
INFO[2020-04-28T00:34:00.240038300+01:00] parsed scheme: "unix"                         module=grpc
INFO[2020-04-28T00:34:00.240144300+01:00] scheme "unix" not registered, fallback to default scheme  module=grpc
INFO[2020-04-28T00:34:00.240259300+01:00] ccResolverWrapper: sending update to cc: {[{unix:///var/run/docker/containerd/containerd.sock 0  <nil>}] <nil>}  module=grpc
INFO[2020-04-28T00:34:00.240335900+01:00] ClientConn switching balancer to "pick_first"  module=grpc
INFO[2020-04-28T00:34:00.311549100+01:00] starting containerd                           revision=7ad184331fa3e55e52b890ea95e65ba581ae3429 version=1.2.13
INFO[2020-04-28T00:34:00.312539400+01:00] loading plugin "io.containerd.content.v1.content"...  type=io.containerd.content.v1
INFO[2020-04-28T00:34:00.312838600+01:00] loading plugin "io.containerd.snapshotter.v1.btrfs"...  type=io.containerd.snapshotter.v1
WARN[2020-04-28T00:34:00.313405100+01:00] 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"
INFO[2020-04-28T00:34:00.313526000+01:00] loading plugin "io.containerd.snapshotter.v1.aufs"...  type=io.containerd.snapshotter.v1
WARN[2020-04-28T00:34:00.317245200+01:00] failed to load plugin io.containerd.snapshotter.v1.aufs  error="modprobe aufs failed: "modprobe: ERROR: ../libkmod/libkmod.c:586 kmod_search_moddep() could not open moddep file '/lib/modules/4.19.84-microsoft-standard/modules.dep.bin'\nmodprobe: FATAL: Module aufs not found in directory /lib/modules/4.19.84-microsoft-standard\n": exit status 1"
INFO[2020-04-28T00:34:00.317333800+01:00] loading plugin "io.containerd.snapshotter.v1.native"...  type=io.containerd.snapshotter.v1
INFO[2020-04-28T00:34:00.317662700+01:00] loading plugin "io.containerd.snapshotter.v1.overlayfs"...  type=io.containerd.snapshotter.v1
INFO[2020-04-28T00:34:00.318148100+01:00] loading plugin "io.containerd.snapshotter.v1.zfs"...  type=io.containerd.snapshotter.v1
INFO[2020-04-28T00:34:00.318533900+01:00] skip loading plugin "io.containerd.snapshotter.v1.zfs"...  type=io.containerd.snapshotter.v1
INFO[2020-04-28T00:34:00.318607500+01:00] loading plugin "io.containerd.metadata.v1.bolt"...  type=io.containerd.metadata.v1
WARN[2020-04-28T00:34:00.318806100+01:00] could not use snapshotter zfs in metadata plugin  error="path /var/lib/docker/containerd/daemon/io.containerd.snapshotter.v1.zfs must be a zfs filesystem to be used with the zfs snapshotter: skip plugin"
WARN[2020-04-28T00:34:00.318877900+01:00] 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"
WARN[2020-04-28T00:34:00.318945900+01:00] could not use snapshotter aufs in metadata plugin  error="modprobe aufs failed: "modprobe: ERROR: ../libkmod/libkmod.c:586 kmod_search_moddep() could not open moddep file '/lib/modules/4.19.84-microsoft-standard/modules.dep.bin'\nmodprobe: FATAL: Module aufs not found in directory /lib/modules/4.19.84-microsoft-standard\n": exit status 1"
INFO[2020-04-28T00:34:00.351775700+01:00] loading plugin "io.containerd.differ.v1.walking"...  type=io.containerd.differ.v1
INFO[2020-04-28T00:34:00.351876000+01:00] loading plugin "io.containerd.gc.v1.scheduler"...  type=io.containerd.gc.v1
INFO[2020-04-28T00:34:00.352036000+01:00] loading plugin "io.containerd.service.v1.containers-service"...  type=io.containerd.service.v1
INFO[2020-04-28T00:34:00.352138700+01:00] loading plugin "io.containerd.service.v1.content-service"...  type=io.containerd.service.v1
INFO[2020-04-28T00:34:00.352172900+01:00] loading plugin "io.containerd.service.v1.diff-service"...  type=io.containerd.service.v1
INFO[2020-04-28T00:34:00.352257300+01:00] loading plugin "io.containerd.service.v1.images-service"...  type=io.containerd.service.v1
INFO[2020-04-28T00:34:00.352366700+01:00] loading plugin "io.containerd.service.v1.leases-service"...  type=io.containerd.service.v1
INFO[2020-04-28T00:34:00.352479500+01:00] loading plugin "io.containerd.service.v1.namespaces-service"...  type=io.containerd.service.v1
INFO[2020-04-28T00:34:00.352593900+01:00] loading plugin "io.containerd.service.v1.snapshots-service"...  type=io.containerd.service.v1
INFO[2020-04-28T00:34:00.352706800+01:00] loading plugin "io.containerd.runtime.v1.linux"...  type=io.containerd.runtime.v1
INFO[2020-04-28T00:34:00.353194500+01:00] loading plugin "io.containerd.runtime.v2.task"...  type=io.containerd.runtime.v2
INFO[2020-04-28T00:34:00.353547700+01:00] loading plugin "io.containerd.monitor.v1.cgroups"...  type=io.containerd.monitor.v1
INFO[2020-04-28T00:34:00.354820800+01:00] loading plugin "io.containerd.service.v1.tasks-service"...  type=io.containerd.service.v1
INFO[2020-04-28T00:34:00.354987000+01:00] loading plugin "io.containerd.internal.v1.restart"...  type=io.containerd.internal.v1
INFO[2020-04-28T00:34:00.355283200+01:00] loading plugin "io.containerd.grpc.v1.containers"...  type=io.containerd.grpc.v1
INFO[2020-04-28T00:34:00.355396900+01:00] loading plugin "io.containerd.grpc.v1.content"...  type=io.containerd.grpc.v1
INFO[2020-04-28T00:34:00.355498800+01:00] loading plugin "io.containerd.grpc.v1.diff"...  type=io.containerd.grpc.v1
INFO[2020-04-28T00:34:00.355612600+01:00] loading plugin "io.containerd.grpc.v1.events"...  type=io.containerd.grpc.v1
INFO[2020-04-28T00:34:00.355730900+01:00] loading plugin "io.containerd.grpc.v1.healthcheck"...  type=io.containerd.grpc.v1
INFO[2020-04-28T00:34:00.355839200+01:00] loading plugin "io.containerd.grpc.v1.images"...  type=io.containerd.grpc.v1
INFO[2020-04-28T00:34:00.355934300+01:00] loading plugin "io.containerd.grpc.v1.leases"...  type=io.containerd.grpc.v1
INFO[2020-04-28T00:34:00.356015800+01:00] loading plugin "io.containerd.grpc.v1.namespaces"...  type=io.containerd.grpc.v1
INFO[2020-04-28T00:34:00.356127200+01:00] loading plugin "io.containerd.internal.v1.opt"...  type=io.containerd.internal.v1
INFO[2020-04-28T00:34:00.357033500+01:00] loading plugin "io.containerd.grpc.v1.snapshots"...  type=io.containerd.grpc.v1
INFO[2020-04-28T00:34:00.357165000+01:00] loading plugin "io.containerd.grpc.v1.tasks"...  type=io.containerd.grpc.v1
INFO[2020-04-28T00:34:00.357276300+01:00] loading plugin "io.containerd.grpc.v1.version"...  type=io.containerd.grpc.v1
INFO[2020-04-28T00:34:00.357387000+01:00] loading plugin "io.containerd.grpc.v1.introspection"...  type=io.containerd.grpc.v1
INFO[2020-04-28T00:34:00.357873200+01:00] serving...                                    address="/var/run/docker/containerd/containerd-debug.sock"
INFO[2020-04-28T00:34:00.358052400+01:00] serving...                                    address="/var/run/docker/containerd/containerd.sock"
INFO[2020-04-28T00:34:00.358182700+01:00] containerd successfully booted in 0.048468s
INFO[2020-04-28T00:34:00.372962100+01:00] parsed scheme: "unix"                         module=grpc
INFO[2020-04-28T00:34:00.373209900+01:00] scheme "unix" not registered, fallback to default scheme  module=grpc
INFO[2020-04-28T00:34:00.377465600+01:00] ccResolverWrapper: sending update to cc: {[{unix:///var/run/docker/containerd/containerd.sock 0  <nil>}] <nil>}  module=grpc
INFO[2020-04-28T00:34:00.377872000+01:00] ClientConn switching balancer to "pick_first"  module=grpc
INFO[2020-04-28T00:34:00.380635200+01:00] parsed scheme: "unix"                         module=grpc
INFO[2020-04-28T00:34:00.380744000+01:00] scheme "unix" not registered, fallback to default scheme  module=grpc
INFO[2020-04-28T00:34:00.380850800+01:00] ccResolverWrapper: sending update to cc: {[{unix:///var/run/docker/containerd/containerd.sock 0  <nil>}] <nil>}  module=grpc
INFO[2020-04-28T00:34:00.380889000+01:00] ClientConn switching balancer to "pick_first"  module=grpc
WARN[2020-04-28T00:34:00.461926900+01:00] Your kernel does not support cgroup blkio weight
WARN[2020-04-28T00:34:00.462013300+01:00] Your kernel does not support cgroup blkio weight_device
WARN[2020-04-28T00:34:00.462114400+01:00] Your kernel does not support cgroup blkio throttle.read_bps_device
WARN[2020-04-28T00:34:00.462174700+01:00] Your kernel does not support cgroup blkio throttle.write_bps_device
WARN[2020-04-28T00:34:00.462234100+01:00] Your kernel does not support cgroup blkio throttle.read_iops_device
WARN[2020-04-28T00:34:00.462293700+01:00] Your kernel does not support cgroup blkio throttle.write_iops_device
INFO[2020-04-28T00:34:00.462759300+01:00] Loading containers: start.
WARN[2020-04-28T00:34:00.469780500+01:00] Running iptables --wait -t nat -L -n failed with message: `iptables v1.8.2 (nf_tables):  CHAIN_ADD failed (No such file or directory): chain PREROUTING`, error: exit status 4
INFO[2020-04-28T00:34:00.523269600+01:00] stopping event stream following graceful shutdown  error="<nil>" module=libcontainerd namespace=moby
INFO[2020-04-28T00:34:00.524017000+01:00] stopping healthcheck following graceful shutdown  module=libcontainerd
INFO[2020-04-28T00:34:00.524093200+01:00] stopping event stream following graceful shutdown  error="context canceled" module=libcontainerd namespace=plugins.moby
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.2 (nf_tables):  CHAIN_ADD failed (No such file or directory): chain PREROUTING
 (exit status 4)
root@LianLiPC-7NB:/home/daz#

Lots of errors I don’t understand, just followed the guides. Errorsmight as well be in Russian - not much help to a mere Brit like myself :confused:
Help!

Have you tried the preview release of Docker Desktop? Sounds like the the WSL kernel is missing some necessary features to run Docker Engine directly.

https://docs.docker.com/docker-for-windows/wsl-tech-preview/

Hi. Thanks for that.
I have never developed on Windows before, so I am getting somewhat lost here.
I do not know what I am doing but simply following guides.

I installed using your above guide link [thanks]
I open a terminal in Windows , and did this:

C:\Users\daz>wsl -l -v
  NAME                   STATE           VERSION
* Debian                 Running         2
  docker-desktop-data    Running         2
  docker-desktop         Running         2

C:\Users\daz>

If I open my wsl2 Debian app and in the terminal opened I did this:

daz@LianLiPC-7NB:~$ docker --version
Docker version 19.03.8, build afacb8b7f0
daz@LianLiPC-7NB:~$

Then back to the terminal opened in windows , I did this:

C:\Users\daz>wsl
daz@LianLiPC-7NB:/mnt/c/Users/daz$ code .
daz@LianLiPC-7NB:/mnt/c/Users/daz$

Then VSC window opens. It looks like this:

Then I install Remote - Containers

Now when I do CTRL-SHIFT-P and type Remote - Containers to open a folder in a container, the only options are:

  • Remote - Containers: Settings
  • Remote - Containers: Open Log File
  • Remote - Containers: Report Issue
  • Remote - Containers: Help

Remote - Containers: Open Folder in Container is not listed as per page linked from the one in your post…

Never used VSC before so I’m quite lost.