Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to start docker on WSL #8450

Closed
1 of 2 tasks
zidong6344 opened this issue May 26, 2022 · 12 comments
Closed
1 of 2 tasks

Failed to start docker on WSL #8450

zidong6344 opened this issue May 26, 2022 · 12 comments

Comments

@zidong6344
Copy link

Version

19043.1586

WSL Version

  • WSL 2
  • WSL 1

Kernel Version

4.15.18

Distro Version

Ubuntu 18.04

Other Software

No response

Repro Steps

sudo dockerd

Expected Behavior

Docker is running

Actual Behavior

Docker is not running

Diagnostic Logs

sudo dockerd
INFO[2022-05-26T23:02:52.560064800+08:00] Starting up
INFO[2022-05-26T23:02:52.560992800+08:00] libcontainerd: started new containerd process pid=193
INFO[2022-05-26T23:02:52.561032300+08:00] parsed scheme: "unix" module=grpc
INFO[2022-05-26T23:02:52.561064100+08:00] scheme "unix" not registered, fallback to default scheme module=grpc
INFO[2022-05-26T23:02:52.561098600+08:00] ccResolverWrapper: sending update to cc: {[{unix:///var/run/docker/containerd/containerd.sock 0 }] } module=grpc
INFO[2022-05-26T23:02:52.561145900+08:00] ClientConn switching balancer to "pick_first" module=grpc
WARN[0000] deprecated version : 1, please switch to version 2
INFO[2022-05-26T23:02:52.578429400+08:00] starting containerd revision=212e8b6fa2f44b9c21b2798135fc6fb7c53efc16 version=1.6.4
INFO[2022-05-26T23:02:52.589700000+08:00] loading plugin "io.containerd.content.v1.content"... type=io.containerd.content.v1
INFO[2022-05-26T23:02:52.589789400+08:00] loading plugin "io.containerd.snapshotter.v1.aufs"... type=io.containerd.snapshotter.v1
INFO[2022-05-26T23:02:52.591700000+08:00] skip loading plugin "io.containerd.snapshotter.v1.aufs"... error="aufs is not supported (modprobe aufs failed: exit status 1 "modprobe: FATAL: Module aufs not found in directory /lib/modules/4.15.18-microsoft-standard-WSL2\n"): skip plugin" type=io.containerd.snapshotter.v1
INFO[2022-05-26T23:02:52.591805600+08:00] loading plugin "io.containerd.snapshotter.v1.btrfs"... type=io.containerd.snapshotter.v1
INFO[2022-05-26T23:02:52.592181200+08:00] skip loading plugin "io.containerd.snapshotter.v1.btrfs"... error="path /var/lib/docker/containerd/daemon/io.containerd.snapshotter.v1.btrfs (ext4) must be a btrfs filesystem to be used with the btrfs snapshotter: skip plugin" type=io.containerd.snapshotter.v1
INFO[2022-05-26T23:02:52.592241000+08:00] loading plugin "io.containerd.snapshotter.v1.devmapper"... type=io.containerd.snapshotter.v1
WARN[2022-05-26T23:02:52.592277100+08:00] failed to load plugin io.containerd.snapshotter.v1.devmapper error="devmapper not configured"
INFO[2022-05-26T23:02:52.592288700+08:00] loading plugin "io.containerd.snapshotter.v1.native"... type=io.containerd.snapshotter.v1
INFO[2022-05-26T23:02:52.592368000+08:00] loading plugin "io.containerd.snapshotter.v1.overlayfs"... type=io.containerd.snapshotter.v1
INFO[2022-05-26T23:02:52.593145000+08:00] loading plugin "io.containerd.snapshotter.v1.zfs"... type=io.containerd.snapshotter.v1
INFO[2022-05-26T23:02:52.593342400+08:00] skip loading plugin "io.containerd.snapshotter.v1.zfs"... 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" type=io.containerd.snapshotter.v1
INFO[2022-05-26T23:02:52.593375300+08:00] loading plugin "io.containerd.metadata.v1.bolt"... type=io.containerd.metadata.v1
WARN[2022-05-26T23:02:52.593408800+08:00] could not use snapshotter devmapper in metadata plugin error="devmapper not configured"
INFO[2022-05-26T23:02:52.593445500+08:00] metadata content store policy set policy=shared
INFO[2022-05-26T23:02:52.593649200+08:00] loading plugin "io.containerd.differ.v1.walking"... type=io.containerd.differ.v1
INFO[2022-05-26T23:02:52.593696100+08:00] loading plugin "io.containerd.event.v1.exchange"... type=io.containerd.event.v1
INFO[2022-05-26T23:02:52.593753600+08:00] loading plugin "io.containerd.gc.v1.scheduler"... type=io.containerd.gc.v1
INFO[2022-05-26T23:02:52.593834900+08:00] loading plugin "io.containerd.service.v1.introspection-service"... type=io.containerd.service.v1
INFO[2022-05-26T23:02:52.593871100+08:00] loading plugin "io.containerd.service.v1.containers-service"... type=io.containerd.service.v1
INFO[2022-05-26T23:02:52.593951300+08:00] loading plugin "io.containerd.service.v1.content-service"... type=io.containerd.service.v1
INFO[2022-05-26T23:02:52.594000900+08:00] loading plugin "io.containerd.service.v1.diff-service"... type=io.containerd.service.v1
INFO[2022-05-26T23:02:52.594046000+08:00] loading plugin "io.containerd.service.v1.images-service"... type=io.containerd.service.v1
INFO[2022-05-26T23:02:52.594095500+08:00] loading plugin "io.containerd.service.v1.leases-service"... type=io.containerd.service.v1
INFO[2022-05-26T23:02:52.594145400+08:00] loading plugin "io.containerd.service.v1.namespaces-service"... type=io.containerd.service.v1
INFO[2022-05-26T23:02:52.594181200+08:00] loading plugin "io.containerd.service.v1.snapshots-service"... type=io.containerd.service.v1
INFO[2022-05-26T23:02:52.594225400+08:00] loading plugin "io.containerd.runtime.v1.linux"... type=io.containerd.runtime.v1
INFO[2022-05-26T23:02:52.594366900+08:00] loading plugin "io.containerd.runtime.v2.task"... type=io.containerd.runtime.v2
INFO[2022-05-26T23:02:52.594444100+08:00] loading plugin "io.containerd.monitor.v1.cgroups"... type=io.containerd.monitor.v1
INFO[2022-05-26T23:02:52.595216300+08:00] loading plugin "io.containerd.service.v1.tasks-service"... type=io.containerd.service.v1
INFO[2022-05-26T23:02:52.595368900+08:00] loading plugin "io.containerd.grpc.v1.introspection"... type=io.containerd.grpc.v1
INFO[2022-05-26T23:02:52.595422900+08:00] loading plugin "io.containerd.internal.v1.restart"... type=io.containerd.internal.v1
INFO[2022-05-26T23:02:52.595584900+08:00] loading plugin "io.containerd.grpc.v1.containers"... type=io.containerd.grpc.v1
INFO[2022-05-26T23:02:52.595626400+08:00] loading plugin "io.containerd.grpc.v1.content"... type=io.containerd.grpc.v1
INFO[2022-05-26T23:02:52.595686700+08:00] loading plugin "io.containerd.grpc.v1.diff"... type=io.containerd.grpc.v1
INFO[2022-05-26T23:02:52.595717700+08:00] loading plugin "io.containerd.grpc.v1.events"... type=io.containerd.grpc.v1
INFO[2022-05-26T23:02:52.595760100+08:00] loading plugin "io.containerd.grpc.v1.healthcheck"... type=io.containerd.grpc.v1
INFO[2022-05-26T23:02:52.595791100+08:00] loading plugin "io.containerd.grpc.v1.images"... type=io.containerd.grpc.v1
INFO[2022-05-26T23:02:52.595819700+08:00] loading plugin "io.containerd.grpc.v1.leases"... type=io.containerd.grpc.v1
INFO[2022-05-26T23:02:52.595847800+08:00] loading plugin "io.containerd.grpc.v1.namespaces"... type=io.containerd.grpc.v1
INFO[2022-05-26T23:02:52.595877900+08:00] loading plugin "io.containerd.internal.v1.opt"... type=io.containerd.internal.v1
INFO[2022-05-26T23:02:52.595935100+08:00] loading plugin "io.containerd.grpc.v1.snapshots"... type=io.containerd.grpc.v1
INFO[2022-05-26T23:02:52.595963700+08:00] loading plugin "io.containerd.grpc.v1.tasks"... type=io.containerd.grpc.v1
INFO[2022-05-26T23:02:52.596010300+08:00] loading plugin "io.containerd.grpc.v1.version"... type=io.containerd.grpc.v1
INFO[2022-05-26T23:02:52.596038400+08:00] loading plugin "io.containerd.tracing.processor.v1.otlp"... type=io.containerd.tracing.processor.v1
INFO[2022-05-26T23:02:52.596068900+08:00] skip loading plugin "io.containerd.tracing.processor.v1.otlp"... error="no OpenTelemetry endpoint: skip plugin" type=io.containerd.tracing.processor.v1
INFO[2022-05-26T23:02:52.596124600+08:00] loading plugin "io.containerd.internal.v1.tracing"... type=io.containerd.internal.v1
ERRO[2022-05-26T23:02:52.596171700+08:00] failed to initialize a tracing processor "otlp" error="no OpenTelemetry endpoint: skip plugin"
INFO[2022-05-26T23:02:52.596368500+08:00] serving... address=/var/run/docker/containerd/containerd-debug.sock
INFO[2022-05-26T23:02:52.596439200+08:00] serving... address=/var/run/docker/containerd/containerd.sock.ttrpc
INFO[2022-05-26T23:02:52.596516000+08:00] serving... address=/var/run/docker/containerd/containerd.sock
INFO[2022-05-26T23:02:52.596545900+08:00] containerd successfully booted in 0.018776s
INFO[2022-05-26T23:02:52.604664800+08:00] parsed scheme: "unix" module=grpc
INFO[2022-05-26T23:02:52.604698000+08:00] scheme "unix" not registered, fallback to default scheme module=grpc
INFO[2022-05-26T23:02:52.604729600+08:00] ccResolverWrapper: sending update to cc: {[{unix:///var/run/docker/containerd/containerd.sock 0 }] } module=grpc
INFO[2022-05-26T23:02:52.604753900+08:00] ClientConn switching balancer to "pick_first" module=grpc
INFO[2022-05-26T23:02:52.606363300+08:00] parsed scheme: "unix" module=grpc
INFO[2022-05-26T23:02:52.606405100+08:00] scheme "unix" not registered, fallback to default scheme module=grpc
INFO[2022-05-26T23:02:52.606439600+08:00] ccResolverWrapper: sending update to cc: {[{unix:///var/run/docker/containerd/containerd.sock 0 }] } module=grpc
INFO[2022-05-26T23:02:52.606466100+08:00] ClientConn switching balancer to "pick_first" module=grpc
INFO[2022-05-26T23:02:52.656537800+08:00] [graphdriver] using prior storage driver: overlay2
WARN[2022-05-26T23:02:52.661928000+08:00] Your kernel does not support cgroup blkio weight
WARN[2022-05-26T23:02:52.661978300+08:00] Your kernel does not support cgroup blkio weight_device
WARN[2022-05-26T23:02:52.661983600+08:00] Your kernel does not support cgroup blkio throttle.read_bps_device
WARN[2022-05-26T23:02:52.661986000+08:00] Your kernel does not support cgroup blkio throttle.write_bps_device
WARN[2022-05-26T23:02:52.661987900+08:00] Your kernel does not support cgroup blkio throttle.read_iops_device
WARN[2022-05-26T23:02:52.661993000+08:00] Your kernel does not support cgroup blkio throttle.write_iops_device
INFO[2022-05-26T23:02:52.662211100+08:00] Loading containers: start.
WARN[2022-05-26T23:02:52.664307100+08:00] Running iptables --wait -t nat -L -n failed with message: 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., error: exit status 3 INFO[2022-05-26T23:02:52.681243400+08:00] stopping event stream following graceful shutdown error="<nil>" module=libcontainerd namespace=moby INFO[2022-05-26T23:02:52.733437200+08:00] stopping healthcheck following graceful shutdown module=libcontainerd INFO[2022-05-26T23:02:52.733629400+08: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.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)

@elsaco
Copy link

elsaco commented May 26, 2022

@zidong6344 try sudo dockerd --iptables=false

If you want to make the change permanent edit /etc/default/docker and add DOCKER_OPTS="--iptables=false". After this you can use sudo service docker start to start your docker server, or stop, restart, and check status. Using service to start docker it will also log events to /var/log/docker which might come in handy later.

@zidong6344
Copy link
Author

Thank you.
Problem resolved.

@fabriciorsf
Copy link

For me the error continues:

$ sudo dockerd --iptables=false
INFO[2023-05-31T18:48:07.075046100-03:00] Starting up
INFO[2023-05-31T18:48:07.077871700-03:00] containerd not running, starting managed containerd
INFO[2023-05-31T18:48:07.098468500-03:00] started new containerd process                address=/var/run/docker/containerd/containerd.sock module=libcontainerd pid=103
INFO[2023-05-31T18:48:07.130665600-03:00] starting containerd                           revision=3dce8eb055cbb6872793272b4f20ed16117344f8 version=1.6.21
INFO[2023-05-31T18:48:07.146380300-03:00] loading plugin "io.containerd.content.v1.content"...  type=io.containerd.content.v1
INFO[2023-05-31T18:48:07.146562900-03:00] loading plugin "io.containerd.snapshotter.v1.aufs"...  type=io.containerd.snapshotter.v1
INFO[2023-05-31T18:48:07.157824500-03:00] skip loading plugin "io.containerd.snapshotter.v1.aufs"...  error="aufs is not supported (modprobe aufs failed: exit status 1 \"modprobe: FATAL: Module aufs not found in directory /lib/modules/4.4.0-19041-Microsoft\\n\"): skip plugin" type=io.containerd.snapshotter.v1
INFO[2023-05-31T18:48:07.157877300-03:00] loading plugin "io.containerd.snapshotter.v1.btrfs"...  type=io.containerd.snapshotter.v1
INFO[2023-05-31T18:48:07.158064600-03:00] skip loading plugin "io.containerd.snapshotter.v1.btrfs"...  error="path /var/lib/docker/containerd/daemon/io.containerd.snapshotter.v1.btrfs (wslfs) must be a btrfs filesystem to be used with the btrfs snapshotter: skip plugin" type=io.containerd.snapshotter.v1
INFO[2023-05-31T18:48:07.158092300-03:00] loading plugin "io.containerd.snapshotter.v1.devmapper"...  type=io.containerd.snapshotter.v1
WARN[2023-05-31T18:48:07.158113200-03:00] failed to load plugin io.containerd.snapshotter.v1.devmapper  error="devmapper not configured"
INFO[2023-05-31T18:48:07.158131000-03:00] loading plugin "io.containerd.snapshotter.v1.native"...  type=io.containerd.snapshotter.v1
INFO[2023-05-31T18:48:07.158251300-03:00] loading plugin "io.containerd.snapshotter.v1.overlayfs"...  type=io.containerd.snapshotter.v1
INFO[2023-05-31T18:48:07.158633000-03:00] loading plugin "io.containerd.snapshotter.v1.zfs"...  type=io.containerd.snapshotter.v1
INFO[2023-05-31T18:48:07.158757800-03:00] skip loading plugin "io.containerd.snapshotter.v1.zfs"...  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" type=io.containerd.snapshotter.v1
INFO[2023-05-31T18:48:07.158792000-03:00] loading plugin "io.containerd.metadata.v1.bolt"...  type=io.containerd.metadata.v1
WARN[2023-05-31T18:48:07.158843600-03:00] could not use snapshotter devmapper in metadata plugin  error="devmapper not configured"
INFO[2023-05-31T18:48:07.158863200-03:00] metadata content store policy set             policy=shared
INFO[2023-05-31T18:48:07.164399800-03:00] loading plugin "io.containerd.differ.v1.walking"...  type=io.containerd.differ.v1
INFO[2023-05-31T18:48:07.164444200-03:00] loading plugin "io.containerd.event.v1.exchange"...  type=io.containerd.event.v1
INFO[2023-05-31T18:48:07.164495200-03:00] loading plugin "io.containerd.gc.v1.scheduler"...  type=io.containerd.gc.v1
INFO[2023-05-31T18:48:07.164595200-03:00] loading plugin "io.containerd.service.v1.introspection-service"...  type=io.containerd.service.v1
INFO[2023-05-31T18:48:07.164626300-03:00] loading plugin "io.containerd.service.v1.containers-service"...  type=io.containerd.service.v1
INFO[2023-05-31T18:48:07.164659600-03:00] loading plugin "io.containerd.service.v1.content-service"...  type=io.containerd.service.v1
INFO[2023-05-31T18:48:07.164682000-03:00] loading plugin "io.containerd.service.v1.diff-service"...  type=io.containerd.service.v1
INFO[2023-05-31T18:48:07.164705200-03:00] loading plugin "io.containerd.service.v1.images-service"...  type=io.containerd.service.v1
INFO[2023-05-31T18:48:07.164726000-03:00] loading plugin "io.containerd.service.v1.leases-service"...  type=io.containerd.service.v1
INFO[2023-05-31T18:48:07.164764200-03:00] loading plugin "io.containerd.service.v1.namespaces-service"...  type=io.containerd.service.v1
INFO[2023-05-31T18:48:07.164808500-03:00] loading plugin "io.containerd.service.v1.snapshots-service"...  type=io.containerd.service.v1
INFO[2023-05-31T18:48:07.164844900-03:00] loading plugin "io.containerd.runtime.v1.linux"...  type=io.containerd.runtime.v1
INFO[2023-05-31T18:48:07.165175800-03:00] loading plugin "io.containerd.runtime.v2.task"...  type=io.containerd.runtime.v2
INFO[2023-05-31T18:48:07.165437700-03:00] loading plugin "io.containerd.monitor.v1.cgroups"...  type=io.containerd.monitor.v1
INFO[2023-05-31T18:48:07.166208900-03:00] loading plugin "io.containerd.service.v1.tasks-service"...  type=io.containerd.service.v1
INFO[2023-05-31T18:48:07.166267900-03:00] loading plugin "io.containerd.grpc.v1.introspection"...  type=io.containerd.grpc.v1
INFO[2023-05-31T18:48:07.166321500-03:00] loading plugin "io.containerd.internal.v1.restart"...  type=io.containerd.internal.v1
INFO[2023-05-31T18:48:07.166449400-03:00] loading plugin "io.containerd.grpc.v1.containers"...  type=io.containerd.grpc.v1
INFO[2023-05-31T18:48:07.166483500-03:00] loading plugin "io.containerd.grpc.v1.content"...  type=io.containerd.grpc.v1
INFO[2023-05-31T18:48:07.166510800-03:00] loading plugin "io.containerd.grpc.v1.diff"...  type=io.containerd.grpc.v1
INFO[2023-05-31T18:48:07.166535700-03:00] loading plugin "io.containerd.grpc.v1.events"...  type=io.containerd.grpc.v1
INFO[2023-05-31T18:48:07.166560900-03:00] loading plugin "io.containerd.grpc.v1.healthcheck"...  type=io.containerd.grpc.v1
INFO[2023-05-31T18:48:07.166584500-03:00] loading plugin "io.containerd.grpc.v1.images"...  type=io.containerd.grpc.v1
INFO[2023-05-31T18:48:07.166748200-03:00] loading plugin "io.containerd.grpc.v1.leases"...  type=io.containerd.grpc.v1
INFO[2023-05-31T18:48:07.166782800-03:00] loading plugin "io.containerd.grpc.v1.namespaces"...  type=io.containerd.grpc.v1
INFO[2023-05-31T18:48:07.166807700-03:00] loading plugin "io.containerd.internal.v1.opt"...  type=io.containerd.internal.v1
INFO[2023-05-31T18:48:07.166931400-03:00] loading plugin "io.containerd.grpc.v1.snapshots"...  type=io.containerd.grpc.v1
INFO[2023-05-31T18:48:07.166956700-03:00] loading plugin "io.containerd.grpc.v1.tasks"...  type=io.containerd.grpc.v1
INFO[2023-05-31T18:48:07.166986200-03:00] loading plugin "io.containerd.grpc.v1.version"...  type=io.containerd.grpc.v1
INFO[2023-05-31T18:48:07.167008300-03:00] loading plugin "io.containerd.tracing.processor.v1.otlp"...  type=io.containerd.tracing.processor.v1
INFO[2023-05-31T18:48:07.167032000-03:00] skip loading plugin "io.containerd.tracing.processor.v1.otlp"...  error="no OpenTelemetry endpoint: skip plugin" type=io.containerd.tracing.processor.v1
INFO[2023-05-31T18:48:07.167072700-03:00] loading plugin "io.containerd.internal.v1.tracing"...  type=io.containerd.internal.v1
ERRO[2023-05-31T18:48:07.167112800-03:00] failed to initialize a tracing processor "otlp"  error="no OpenTelemetry endpoint: skip plugin"
INFO[2023-05-31T18:48:07.169135300-03:00] serving...                                    address=/var/run/docker/containerd/containerd-debug.sock
INFO[2023-05-31T18:48:07.170809800-03:00] serving...                                    address=/var/run/docker/containerd/containerd.sock.ttrpc
INFO[2023-05-31T18:48:07.171233700-03:00] serving...                                    address=/var/run/docker/containerd/containerd.sock
INFO[2023-05-31T18:48:07.171272200-03:00] containerd successfully booted in 0.041748s
INFO[2023-05-31T18:48:07.208364500-03:00] [graphdriver] using prior storage driver: overlay2
INFO[2023-05-31T18:48:07.208998000-03:00] Loading containers: start.
INFO[2023-05-31T18:48:07.209272700-03:00] falling back to default port range 49153-65535  error="open /proc/sys/net/ipv4/ip_local_port_range: no such file or directory"
WARN[2023-05-31T18:48:07.218524300-03:00] Could not load necessary modules for IPSEC rules: protocol not supported
WARN[2023-05-31T18:48:07.229195200-03:00] Could not load necessary modules for Conntrack: Running modprobe nf_conntrack failed with message: `modprobe: WARNING: Module nf_conntrack not found in directory /lib/modules/4.4.0-19041-Microsoft`, error: exit status 1
ERRO[2023-05-31T18:48:07.230052300-03:00] Failed to create bridge docker0 via netlink   error="permission denied"
INFO[2023-05-31T18:48:07.233118400-03:00] stopping event stream following graceful shutdown  error="<nil>" module=libcontainerd namespace=moby
INFO[2023-05-31T18:48:07.234448100-03:00] stopping healthcheck following graceful shutdown  module=libcontainerd
INFO[2023-05-31T18:48:07.234501300-03:00] stopping event stream following graceful shutdown  error="context canceled" module=libcontainerd namespace=plugins.moby
failed to start daemon: Error initializing network controller: Error creating default "bridge" network: permission denied

@herbethalbuquerque
Copy link

@fabriciorsf have you tried the step-by-step that @elsaco explained above?

If you want to make the change permanent edit /etc/default/docker and add DOCKER_OPTS="--iptables=false". After this you can use sudo service docker start to start your docker server, or stop, restart, and check status. Using service to start docker it will also log events to /var/log/docker which might come in handy later.

I believe it will solve your problem.

@fabriciorsf
Copy link

The same error:

$ cat /etc/default/docker
# Docker Upstart and SysVinit configuration file

#
# THIS FILE DOES NOT APPLY TO SYSTEMD
#
#   Please see the documentation for "systemd drop-ins":
#   https://docs.docker.com/engine/admin/systemd/
#

# Customize location of Docker binary (especially for development testing).
#DOCKERD="/usr/local/bin/dockerd"

# Use DOCKER_OPTS to modify the daemon startup options.
#DOCKER_OPTS="--dns 8.8.8.8 --dns 8.8.4.4"

# If you need Docker to use an HTTP proxy, it can also be specified here.
#export http_proxy="http://127.0.0.1:3128/"

# This is also a handy place to tweak where Docker's temporary files go.
#export DOCKER_TMPDIR="/mnt/bigdrive/docker-tmp"
DOCKER_OPTS="--iptables=false"
$ cat /var/log/docker.log
time="2023-06-02T17:49:46.298083500-03:00" level=info msg="Starting up"
time="2023-06-02T17:49:46.306070600-03:00" level=info msg="containerd not running, starting managed containerd"
time="2023-06-02T17:49:46.314806300-03:00" level=info msg="started new containerd process" address=/var/run/docker/containerd/containerd.sock module=libcontainerd pid=101
time="2023-06-02T17:49:46.376024500-03:00" level=info msg="starting containerd" revision=3dce8eb055cbb6872793272b4f20ed16117344f8 version=1.6.21
time="2023-06-02T17:49:46.391094600-03:00" level=info msg="loading plugin \"io.containerd.content.v1.content\"..." type=io.containerd.content.v1
time="2023-06-02T17:49:46.407420200-03:00" level=info msg="loading plugin \"io.containerd.snapshotter.v1.aufs\"..." type=io.containerd.snapshotter.v1
time="2023-06-02T17:49:46.428049700-03:00" level=info msg="skip loading plugin \"io.containerd.snapshotter.v1.aufs\"..." error="aufs is not supported (modprobe aufs failed: exit status 1 \"modprobe: FATAL: Module aufs not found in directory /lib/modules/4.4.0-19041-Microsoft\\n\"): skip plugin" type=io.containerd.snapshotter.v1
time="2023-06-02T17:49:46.428180300-03:00" level=info msg="loading plugin \"io.containerd.snapshotter.v1.btrfs\"..." type=io.containerd.snapshotter.v1
time="2023-06-02T17:49:46.428368000-03:00" level=info msg="skip loading plugin \"io.containerd.snapshotter.v1.btrfs\"..." error="path /var/lib/docker/containerd/daemon/io.containerd.snapshotter.v1.btrfs (wslfs) must be a btrfs filesystem to be used with the btrfs snapshotter: skip plugin" type=io.containerd.snapshotter.v1
time="2023-06-02T17:49:46.428404100-03:00" level=info msg="loading plugin \"io.containerd.snapshotter.v1.devmapper\"..." type=io.containerd.snapshotter.v1
time="2023-06-02T17:49:46.428434400-03:00" level=warning msg="failed to load plugin io.containerd.snapshotter.v1.devmapper" error="devmapper not configured"
time="2023-06-02T17:49:46.428466300-03:00" level=info msg="loading plugin \"io.containerd.snapshotter.v1.native\"..." type=io.containerd.snapshotter.v1
time="2023-06-02T17:49:46.428627600-03:00" level=info msg="loading plugin \"io.containerd.snapshotter.v1.overlayfs\"..." type=io.containerd.snapshotter.v1
time="2023-06-02T17:49:46.429035200-03:00" level=info msg="loading plugin \"io.containerd.snapshotter.v1.zfs\"..." type=io.containerd.snapshotter.v1
time="2023-06-02T17:49:46.429180800-03:00" level=info msg="skip loading plugin \"io.containerd.snapshotter.v1.zfs\"..." 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" type=io.containerd.snapshotter.v1
time="2023-06-02T17:49:46.429216400-03:00" level=info msg="loading plugin \"io.containerd.metadata.v1.bolt\"..." type=io.containerd.metadata.v1
time="2023-06-02T17:49:46.429267200-03:00" level=warning msg="could not use snapshotter devmapper in metadata plugin" error="devmapper not configured"
time="2023-06-02T17:49:46.429297900-03:00" level=info msg="metadata content store policy set" policy=shared
time="2023-06-02T17:49:46.436975300-03:00" level=info msg="loading plugin \"io.containerd.differ.v1.walking\"..." type=io.containerd.differ.v1
time="2023-06-02T17:49:46.437049300-03:00" level=info msg="loading plugin \"io.containerd.event.v1.exchange\"..." type=io.containerd.event.v1
time="2023-06-02T17:49:46.437094100-03:00" level=info msg="loading plugin \"io.containerd.gc.v1.scheduler\"..." type=io.containerd.gc.v1
time="2023-06-02T17:49:46.437180000-03:00" level=info msg="loading plugin \"io.containerd.service.v1.introspection-service\"..." type=io.containerd.service.v1
time="2023-06-02T17:49:46.437220500-03:00" level=info msg="loading plugin \"io.containerd.service.v1.containers-service\"..." type=io.containerd.service.v1
time="2023-06-02T17:49:46.437258200-03:00" level=info msg="loading plugin \"io.containerd.service.v1.content-service\"..." type=io.containerd.service.v1
time="2023-06-02T17:49:46.437286600-03:00" level=info msg="loading plugin \"io.containerd.service.v1.diff-service\"..." type=io.containerd.service.v1
time="2023-06-02T17:49:46.437372100-03:00" level=info msg="loading plugin \"io.containerd.service.v1.images-service\"..." type=io.containerd.service.v1
time="2023-06-02T17:49:46.437404700-03:00" level=info msg="loading plugin \"io.containerd.service.v1.leases-service\"..." type=io.containerd.service.v1
time="2023-06-02T17:49:46.437434600-03:00" level=info msg="loading plugin \"io.containerd.service.v1.namespaces-service\"..." type=io.containerd.service.v1
time="2023-06-02T17:49:46.437464000-03:00" level=info msg="loading plugin \"io.containerd.service.v1.snapshots-service\"..." type=io.containerd.service.v1
time="2023-06-02T17:49:46.437501800-03:00" level=info msg="loading plugin \"io.containerd.runtime.v1.linux\"..." type=io.containerd.runtime.v1
time="2023-06-02T17:49:46.437931900-03:00" level=info msg="loading plugin \"io.containerd.runtime.v2.task\"..." type=io.containerd.runtime.v2
time="2023-06-02T17:49:46.438182100-03:00" level=info msg="loading plugin \"io.containerd.monitor.v1.cgroups\"..." type=io.containerd.monitor.v1
time="2023-06-02T17:49:46.438770300-03:00" level=info msg="loading plugin \"io.containerd.service.v1.tasks-service\"..." type=io.containerd.service.v1
time="2023-06-02T17:49:46.438818000-03:00" level=info msg="loading plugin \"io.containerd.grpc.v1.introspection\"..." type=io.containerd.grpc.v1
time="2023-06-02T17:49:46.438850300-03:00" level=info msg="loading plugin \"io.containerd.internal.v1.restart\"..." type=io.containerd.internal.v1
time="2023-06-02T17:49:46.438930400-03:00" level=info msg="loading plugin \"io.containerd.grpc.v1.containers\"..." type=io.containerd.grpc.v1
time="2023-06-02T17:49:46.438969400-03:00" level=info msg="loading plugin \"io.containerd.grpc.v1.content\"..." type=io.containerd.grpc.v1
time="2023-06-02T17:49:46.438998500-03:00" level=info msg="loading plugin \"io.containerd.grpc.v1.diff\"..." type=io.containerd.grpc.v1
time="2023-06-02T17:49:46.439025600-03:00" level=info msg="loading plugin \"io.containerd.grpc.v1.events\"..." type=io.containerd.grpc.v1
time="2023-06-02T17:49:46.439062000-03:00" level=info msg="loading plugin \"io.containerd.grpc.v1.healthcheck\"..." type=io.containerd.grpc.v1
time="2023-06-02T17:49:46.439100700-03:00" level=info msg="loading plugin \"io.containerd.grpc.v1.images\"..." type=io.containerd.grpc.v1
time="2023-06-02T17:49:46.439128700-03:00" level=info msg="loading plugin \"io.containerd.grpc.v1.leases\"..." type=io.containerd.grpc.v1
time="2023-06-02T17:49:46.439155400-03:00" level=info msg="loading plugin \"io.containerd.grpc.v1.namespaces\"..." type=io.containerd.grpc.v1
time="2023-06-02T17:49:46.439192800-03:00" level=info msg="loading plugin \"io.containerd.internal.v1.opt\"..." type=io.containerd.internal.v1
time="2023-06-02T17:49:46.439320700-03:00" level=info msg="loading plugin \"io.containerd.grpc.v1.snapshots\"..." type=io.containerd.grpc.v1
time="2023-06-02T17:49:46.439352000-03:00" level=info msg="loading plugin \"io.containerd.grpc.v1.tasks\"..." type=io.containerd.grpc.v1
time="2023-06-02T17:49:46.439381500-03:00" level=info msg="loading plugin \"io.containerd.grpc.v1.version\"..." type=io.containerd.grpc.v1
time="2023-06-02T17:49:46.439408900-03:00" level=info msg="loading plugin \"io.containerd.tracing.processor.v1.otlp\"..." type=io.containerd.tracing.processor.v1
time="2023-06-02T17:49:46.439438900-03:00" level=info msg="skip loading plugin \"io.containerd.tracing.processor.v1.otlp\"..." error="no OpenTelemetry endpoint: skip plugin" type=io.containerd.tracing.processor.v1
time="2023-06-02T17:49:46.439472800-03:00" level=info msg="loading plugin \"io.containerd.internal.v1.tracing\"..." type=io.containerd.internal.v1
time="2023-06-02T17:49:46.439519900-03:00" level=error msg="failed to initialize a tracing processor \"otlp\"" error="no OpenTelemetry endpoint: skip plugin"
time="2023-06-02T17:49:46.477734300-03:00" level=info msg=serving... address=/var/run/docker/containerd/containerd-debug.sock
time="2023-06-02T17:49:46.479396900-03:00" level=info msg=serving... address=/var/run/docker/containerd/containerd.sock.ttrpc
time="2023-06-02T17:49:46.479941700-03:00" level=info msg=serving... address=/var/run/docker/containerd/containerd.sock
time="2023-06-02T17:49:46.479988400-03:00" level=info msg="containerd successfully booted in 0.105152s"
time="2023-06-02T17:49:46.540902300-03:00" level=info msg="[graphdriver] using prior storage driver: overlay2"
time="2023-06-02T17:49:46.541517300-03:00" level=info msg="Loading containers: start."
time="2023-06-02T17:49:46.541793700-03:00" level=info msg="falling back to default port range 49153-65535" error="open /proc/sys/net/ipv4/ip_local_port_range: no such file or directory"
time="2023-06-02T17:49:46.726748800-03:00" level=warning msg="Could not load necessary modules for IPSEC rules: protocol not supported"
time="2023-06-02T17:49:46.757517300-03:00" level=warning msg="Could not load necessary modules for Conntrack: Running modprobe nf_conntrack failed with message: `modprobe: WARNING: Module nf_conntrack not found in directory /lib/modules/4.4.0-19041-Microsoft`, error: exit status 1"
time="2023-06-02T17:49:46.813651000-03:00" level=error msg="Failed to create bridge docker0 via netlink" error="permission denied"
time="2023-06-02T17:49:46.820214900-03:00" level=info msg="stopping event stream following graceful shutdown" error="<nil>" module=libcontainerd namespace=moby
time="2023-06-02T17:49:46.823141500-03:00" level=info msg="stopping healthcheck following graceful shutdown" module=libcontainerd
time="2023-06-02T17:49:46.823284000-03:00" level=info msg="stopping event stream following graceful shutdown" error="context canceled" module=libcontainerd namespace=plugins.moby
failed to start daemon: Error initializing network controller: Error creating default "bridge" network: permission denied

@VitaliKasyanenka
Copy link

I'm getting the same error on WSL 1

@fabriciorsf
Copy link

Now with a fresh install of WSL2 from scratch:

INFO[2023-06-19T19:27:17.638723900-03:00] Starting up
INFO[2023-06-19T19:27:17.639216700-03:00] containerd not running, starting managed containerd
INFO[2023-06-19T19:27:17.654858700-03:00] started new containerd process                address=/var/run/docker/containerd/containerd.sock module=libcontainerd pid=83
INFO[2023-06-19T19:27:18.825811900-03:00] starting containerd                           revision=3dce8eb055cbb6872793272b4f20ed16117344f8 version=1.6.21
INFO[2023-06-19T19:27:18.847151800-03:00] loading plugin "io.containerd.content.v1.content"...  type=io.containerd.content.v1
INFO[2023-06-19T19:27:18.864543800-03:00] loading plugin "io.containerd.snapshotter.v1.aufs"...  type=io.containerd.snapshotter.v1
INFO[2023-06-19T19:27:19.076223200-03:00] skip loading plugin "io.containerd.snapshotter.v1.aufs"...  error="aufs is not supported (modprobe aufs failed: exit status 1 \"modprobe: FATAL: Module aufs not found in directory /lib/modules/5.10.102.1-microsoft-standard-WSL2\\n\"): skip plugin" type=io.containerd.snapshotter.v1
INFO[2023-06-19T19:27:19.076411100-03:00] loading plugin "io.containerd.snapshotter.v1.btrfs"...  type=io.containerd.snapshotter.v1
INFO[2023-06-19T19:27:19.076864500-03:00] skip loading plugin "io.containerd.snapshotter.v1.btrfs"...  error="path /var/lib/docker/containerd/daemon/io.containerd.snapshotter.v1.btrfs (ext4) must be a btrfs filesystem to be used with the btrfs snapshotter: skip plugin" type=io.containerd.snapshotter.v1
INFO[2023-06-19T19:27:19.076953300-03:00] loading plugin "io.containerd.snapshotter.v1.devmapper"...  type=io.containerd.snapshotter.v1
WARN[2023-06-19T19:27:19.076990400-03:00] failed to load plugin io.containerd.snapshotter.v1.devmapper  error="devmapper not configured"
INFO[2023-06-19T19:27:19.077021000-03:00] loading plugin "io.containerd.snapshotter.v1.native"...  type=io.containerd.snapshotter.v1
INFO[2023-06-19T19:27:19.085955400-03:00] loading plugin "io.containerd.snapshotter.v1.overlayfs"...  type=io.containerd.snapshotter.v1
INFO[2023-06-19T19:27:19.087089900-03:00] loading plugin "io.containerd.snapshotter.v1.zfs"...  type=io.containerd.snapshotter.v1
INFO[2023-06-19T19:27:19.113168900-03:00] skip loading plugin "io.containerd.snapshotter.v1.zfs"...  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" type=io.containerd.snapshotter.v1
INFO[2023-06-19T19:27:19.113294300-03:00] loading plugin "io.containerd.metadata.v1.bolt"...  type=io.containerd.metadata.v1
WARN[2023-06-19T19:27:19.113360700-03:00] could not use snapshotter devmapper in metadata plugin  error="devmapper not configured"
INFO[2023-06-19T19:27:19.113485100-03:00] metadata content store policy set             policy=shared
INFO[2023-06-19T19:27:19.173400000-03:00] loading plugin "io.containerd.differ.v1.walking"...  type=io.containerd.differ.v1
INFO[2023-06-19T19:27:19.173598000-03:00] loading plugin "io.containerd.event.v1.exchange"...  type=io.containerd.event.v1
INFO[2023-06-19T19:27:19.173705000-03:00] loading plugin "io.containerd.gc.v1.scheduler"...  type=io.containerd.gc.v1
INFO[2023-06-19T19:27:19.173899400-03:00] loading plugin "io.containerd.service.v1.introspection-service"...  type=io.containerd.service.v1
INFO[2023-06-19T19:27:19.173939400-03:00] loading plugin "io.containerd.service.v1.containers-service"...  type=io.containerd.service.v1
INFO[2023-06-19T19:27:19.174026800-03:00] loading plugin "io.containerd.service.v1.content-service"...  type=io.containerd.service.v1
INFO[2023-06-19T19:27:19.174071700-03:00] loading plugin "io.containerd.service.v1.diff-service"...  type=io.containerd.service.v1
INFO[2023-06-19T19:27:19.174113700-03:00] loading plugin "io.containerd.service.v1.images-service"...  type=io.containerd.service.v1
INFO[2023-06-19T19:27:19.174147100-03:00] loading plugin "io.containerd.service.v1.leases-service"...  type=io.containerd.service.v1
INFO[2023-06-19T19:27:19.174239300-03:00] loading plugin "io.containerd.service.v1.namespaces-service"...  type=io.containerd.service.v1
INFO[2023-06-19T19:27:19.174365600-03:00] loading plugin "io.containerd.service.v1.snapshots-service"...  type=io.containerd.service.v1
INFO[2023-06-19T19:27:19.174457400-03:00] loading plugin "io.containerd.runtime.v1.linux"...  type=io.containerd.runtime.v1
INFO[2023-06-19T19:27:19.174743500-03:00] loading plugin "io.containerd.runtime.v2.task"...  type=io.containerd.runtime.v2
INFO[2023-06-19T19:27:19.175025400-03:00] loading plugin "io.containerd.monitor.v1.cgroups"...  type=io.containerd.monitor.v1
INFO[2023-06-19T19:27:19.183614400-03:00] loading plugin "io.containerd.service.v1.tasks-service"...  type=io.containerd.service.v1
INFO[2023-06-19T19:27:19.183739000-03:00] loading plugin "io.containerd.grpc.v1.introspection"...  type=io.containerd.grpc.v1
INFO[2023-06-19T19:27:19.183830800-03:00] loading plugin "io.containerd.internal.v1.restart"...  type=io.containerd.internal.v1
INFO[2023-06-19T19:27:19.207403100-03:00] loading plugin "io.containerd.grpc.v1.containers"...  type=io.containerd.grpc.v1
INFO[2023-06-19T19:27:19.207527900-03:00] loading plugin "io.containerd.grpc.v1.content"...  type=io.containerd.grpc.v1
INFO[2023-06-19T19:27:19.207566800-03:00] loading plugin "io.containerd.grpc.v1.diff"...  type=io.containerd.grpc.v1
INFO[2023-06-19T19:27:19.207598100-03:00] loading plugin "io.containerd.grpc.v1.events"...  type=io.containerd.grpc.v1
INFO[2023-06-19T19:27:19.207645600-03:00] loading plugin "io.containerd.grpc.v1.healthcheck"...  type=io.containerd.grpc.v1
INFO[2023-06-19T19:27:19.207754000-03:00] loading plugin "io.containerd.grpc.v1.images"...  type=io.containerd.grpc.v1
INFO[2023-06-19T19:27:19.207793100-03:00] loading plugin "io.containerd.grpc.v1.leases"...  type=io.containerd.grpc.v1
INFO[2023-06-19T19:27:19.207824700-03:00] loading plugin "io.containerd.grpc.v1.namespaces"...  type=io.containerd.grpc.v1
INFO[2023-06-19T19:27:19.207858100-03:00] loading plugin "io.containerd.internal.v1.opt"...  type=io.containerd.internal.v1
INFO[2023-06-19T19:27:19.225138500-03:00] loading plugin "io.containerd.grpc.v1.snapshots"...  type=io.containerd.grpc.v1
INFO[2023-06-19T19:27:19.225262300-03:00] loading plugin "io.containerd.grpc.v1.tasks"...  type=io.containerd.grpc.v1
INFO[2023-06-19T19:27:19.225300000-03:00] loading plugin "io.containerd.grpc.v1.version"...  type=io.containerd.grpc.v1
INFO[2023-06-19T19:27:19.225383300-03:00] loading plugin "io.containerd.tracing.processor.v1.otlp"...  type=io.containerd.tracing.processor.v1
INFO[2023-06-19T19:27:19.225484300-03:00] skip loading plugin "io.containerd.tracing.processor.v1.otlp"...  error="no OpenTelemetry endpoint: skip plugin" type=io.containerd.tracing.processor.v1
INFO[2023-06-19T19:27:19.225601000-03:00] loading plugin "io.containerd.internal.v1.tracing"...  type=io.containerd.internal.v1
ERRO[2023-06-19T19:27:19.225787300-03:00] failed to initialize a tracing processor "otlp"  error="no OpenTelemetry endpoint: skip plugin"
INFO[2023-06-19T19:27:19.226356500-03:00] serving...                                    address=/var/run/docker/containerd/containerd-debug.sock
INFO[2023-06-19T19:27:19.226538200-03:00] serving...                                    address=/var/run/docker/containerd/containerd.sock.ttrpc
INFO[2023-06-19T19:27:19.226698500-03:00] serving...                                    address=/var/run/docker/containerd/containerd.sock
INFO[2023-06-19T19:27:19.226794000-03:00] containerd successfully booted in 0.440663s
INFO[2023-06-19T19:27:20.335799500-03:00] [graphdriver] using prior storage driver: overlay2
INFO[2023-06-19T19:27:20.370369300-03:00] Loading containers: start.
INFO[2023-06-19T19:27:20.817976200-03:00] stopping healthcheck following graceful shutdown  module=libcontainerd
ERRO[2023-06-19T19:27:20.837535500-03:00] Failed to get event                           error="rpc error: code = Unavailable desc = error reading from server: read unix @->/var/run/docker/containerd/containerd.sock: use of closed network connection" module=libcontainerd namespace=moby
INFO[2023-06-19T19:27:20.837653300-03:00] Waiting for containerd to be ready to restart event processing  module=libcontainerd namespace=moby
WARN[2023-06-19T19:27:20.837855100-03:00] Error while testing if containerd API is ready  error="rpc error: code = Canceled desc = context canceled"
INFO[2023-06-19T19:27:20.837895100-03:00] stopping event stream following graceful shutdown  error="context canceled" module=libcontainerd namespace=moby
ERRO[2023-06-19T19:27:20.837662000-03:00] Failed to get event                           error="rpc error: code = Unavailable desc = error reading from server: EOF" module=libcontainerd namespace=plugins.moby
INFO[2023-06-19T19:27:20.837954600-03:00] Waiting for containerd to be ready to restart event processing  module=libcontainerd namespace=plugins.moby
WARN[2023-06-19T19:27:20.838016700-03:00] Error while testing if containerd API is ready  error="rpc error: code = Canceled desc = context canceled"
INFO[2023-06-19T19:27:20.838096300-03: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: unable to add return rule in DOCKER-ISOLATION-STAGE-1 chain:  (iptables failed: iptables --wait -A DOCKER-ISOLATION-STAGE-1 -j RETURN: iptables v1.8.7 (nf_tables):  RULE_APPEND failed (No such file or directory): rule in chain DOCKER-ISOLATION-STAGE-1
 (exit status 4))

@l-kokodic
Copy link

Do you by chance have Docker Desktop installed as well? If yes, try uninstalling it, along with Ubuntu and do the whole setup again. At least that's what fixed the issue for me.

@IghuToh0
Copy link

IghuToh0 commented Oct 1, 2023

the same here as in #8450 (comment):

uname -a
Linux PC34047 4.4.0-19041-Microsoft #2311-Microsoft Tue Nov 08 17:09:00 PST 2022 x86_64 x86_64 x86_64 GNU/Linux

$ cat /etc/docker/daemon.json 
{
    "iptables" : false
}

$ fgrep error /var/log/docker.log
time="2023-10-01T13:58:14.942187600+02:00" level=error msg="Failed to create bridge docker0 via netlink" error="permission denied"
time="2023-10-01T13:58:14.950049400+02:00" level=info msg="stopping event stream following graceful shutdown" error="<nil>" module=libcontainerd namespace=moby
time="2023-10-01T13:58:14.953494300+02:00" level=info msg="stopping event stream following graceful shutdown" error="context canceled" module=libcontainerd namespace=plugins.moby
failed to start daemon: Error initializing network controller: error creating default "bridge" network: permission denied

Any hints?

@snowwalkk
Copy link

INFO[2024-03-26T17:16:26.703300124+08:00] Starting up
INFO[2024-03-26T17:16:26.704617711+08:00] containerd not running, starting managed containerd
INFO[2024-03-26T17:16:26.705687841+08:00] started new containerd process address=/var/run/docker/containerd/containerd.sock module=libcontainerd pid=440
INFO[2024-03-26T17:16:26.725569310+08:00] starting containerd revision=ae07eda36dd25f8a1b98dfbf587313b99c0190bb version=1.6.28
INFO[2024-03-26T17:16:26.742343381+08:00] loading plugin "io.containerd.snapshotter.v1.aufs"... type=io.containerd.snapshotter.v1
INFO[2024-03-26T17:16:26.742479249+08:00] skip loading plugin "io.containerd.snapshotter.v1.aufs"... error="aufs is not supported (modprobe aufs failed: exec: "modprobe": executable file not found in $PATH ""): skip plugin" type=io.containerd.snapshotter.v1
INFO[2024-03-26T17:16:26.742503382+08:00] loading plugin "io.containerd.content.v1.content"... type=io.containerd.content.v1
INFO[2024-03-26T17:16:26.742526432+08:00] loading plugin "io.containerd.snapshotter.v1.btrfs"... type=io.containerd.snapshotter.v1
INFO[2024-03-26T17:16:26.743127611+08:00] skip loading plugin "io.containerd.snapshotter.v1.btrfs"... error="path /var/lib/docker/containerd/daemon/io.containerd.snapshotter.v1.btrfs (overlay) must be a btrfs filesystem to be used with the btrfs snapshotter: skip plugin" type=io.containerd.snapshotter.v1
INFO[2024-03-26T17:16:26.743146332+08:00] loading plugin "io.containerd.snapshotter.v1.devmapper"... type=io.containerd.snapshotter.v1
WARN[2024-03-26T17:16:26.743159720+08:00] failed to load plugin io.containerd.snapshotter.v1.devmapper error="devmapper not configured"
INFO[2024-03-26T17:16:26.743170481+08:00] loading plugin "io.containerd.snapshotter.v1.native"... type=io.containerd.snapshotter.v1
INFO[2024-03-26T17:16:26.743192399+08:00] loading plugin "io.containerd.snapshotter.v1.overlayfs"... type=io.containerd.snapshotter.v1
INFO[2024-03-26T17:16:26.743287997+08:00] loading plugin "io.containerd.snapshotter.v1.zfs"... type=io.containerd.snapshotter.v1
INFO[2024-03-26T17:16:26.743793713+08:00] skip loading plugin "io.containerd.snapshotter.v1.zfs"... 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" type=io.containerd.snapshotter.v1
INFO[2024-03-26T17:16:26.743822097+08:00] loading plugin "io.containerd.metadata.v1.bolt"... type=io.containerd.metadata.v1
WARN[2024-03-26T17:16:26.743838401+08:00] could not use snapshotter devmapper in metadata plugin error="devmapper not configured"
INFO[2024-03-26T17:16:26.743846786+08:00] metadata content store policy set policy=shared
INFO[2024-03-26T17:16:26.743936293+08:00] loading plugin "io.containerd.differ.v1.walking"... type=io.containerd.differ.v1
INFO[2024-03-26T17:16:26.743954765+08:00] loading plugin "io.containerd.event.v1.exchange"... type=io.containerd.event.v1
INFO[2024-03-26T17:16:26.743973884+08:00] loading plugin "io.containerd.gc.v1.scheduler"... type=io.containerd.gc.v1
INFO[2024-03-26T17:16:26.744004713+08:00] loading plugin "io.containerd.runtime.v1.linux"... type=io.containerd.runtime.v1
INFO[2024-03-26T17:16:26.744049048+08:00] loading plugin "io.containerd.runtime.v2.task"... type=io.containerd.runtime.v2
INFO[2024-03-26T17:16:26.744100554+08:00] loading plugin "io.containerd.internal.v1.opt"... type=io.containerd.internal.v1
INFO[2024-03-26T17:16:26.744139687+08:00] loading plugin "io.containerd.warning.v1.deprecations"... type=io.containerd.warning.v1
INFO[2024-03-26T17:16:26.744154386+08:00] loading plugin "io.containerd.monitor.v1.cgroups"... type=io.containerd.monitor.v1
INFO[2024-03-26T17:16:26.744486579+08:00] loading plugin "io.containerd.service.v1.containers-service"... type=io.containerd.service.v1
INFO[2024-03-26T17:16:26.744515939+08:00] loading plugin "io.containerd.service.v1.content-service"... type=io.containerd.service.v1
INFO[2024-03-26T17:16:26.744530891+08:00] loading plugin "io.containerd.service.v1.diff-service"... type=io.containerd.service.v1
INFO[2024-03-26T17:16:26.744548271+08:00] loading plugin "io.containerd.service.v1.images-service"... type=io.containerd.service.v1
INFO[2024-03-26T17:16:26.744574978+08:00] loading plugin "io.containerd.service.v1.introspection-service"... type=io.containerd.service.v1
INFO[2024-03-26T17:16:26.744591470+08:00] loading plugin "io.containerd.service.v1.leases-service"... type=io.containerd.service.v1
INFO[2024-03-26T17:16:26.744609131+08:00] loading plugin "io.containerd.service.v1.namespaces-service"... type=io.containerd.service.v1
INFO[2024-03-26T17:16:26.744629458+08:00] loading plugin "io.containerd.service.v1.snapshots-service"... type=io.containerd.service.v1
INFO[2024-03-26T17:16:26.744655274+08:00] loading plugin "io.containerd.service.v1.tasks-service"... type=io.containerd.service.v1
INFO[2024-03-26T17:16:26.744681661+08:00] loading plugin "io.containerd.grpc.v1.containers"... type=io.containerd.grpc.v1
INFO[2024-03-26T17:16:26.744710227+08:00] loading plugin "io.containerd.grpc.v1.content"... type=io.containerd.grpc.v1
INFO[2024-03-26T17:16:26.744729037+08:00] loading plugin "io.containerd.grpc.v1.diff"... type=io.containerd.grpc.v1
INFO[2024-03-26T17:16:26.744747608+08:00] loading plugin "io.containerd.grpc.v1.events"... type=io.containerd.grpc.v1
INFO[2024-03-26T17:16:26.744766461+08:00] loading plugin "io.containerd.grpc.v1.images"... type=io.containerd.grpc.v1
INFO[2024-03-26T17:16:26.744785391+08:00] loading plugin "io.containerd.grpc.v1.introspection"... type=io.containerd.grpc.v1
INFO[2024-03-26T17:16:26.744823070+08:00] loading plugin "io.containerd.grpc.v1.leases"... type=io.containerd.grpc.v1
INFO[2024-03-26T17:16:26.744836375+08:00] loading plugin "io.containerd.grpc.v1.namespaces"... type=io.containerd.grpc.v1
INFO[2024-03-26T17:16:26.744852916+08:00] loading plugin "io.containerd.grpc.v1.snapshots"... type=io.containerd.grpc.v1
INFO[2024-03-26T17:16:26.744866654+08:00] loading plugin "io.containerd.grpc.v1.tasks"... type=io.containerd.grpc.v1
INFO[2024-03-26T17:16:26.744886729+08:00] loading plugin "io.containerd.grpc.v1.version"... type=io.containerd.grpc.v1
INFO[2024-03-26T17:16:26.744906105+08:00] loading plugin "io.containerd.tracing.processor.v1.otlp"... type=io.containerd.tracing.processor.v1
INFO[2024-03-26T17:16:26.744929089+08:00] skip loading plugin "io.containerd.tracing.processor.v1.otlp"... error="no OpenTelemetry endpoint: skip plugin" type=io.containerd.tracing.processor.v1
INFO[2024-03-26T17:16:26.744947418+08:00] loading plugin "io.containerd.internal.v1.tracing"... type=io.containerd.internal.v1
ERRO[2024-03-26T17:16:26.744972282+08:00] failed to initialize a tracing processor "otlp" error="no OpenTelemetry endpoint: skip plugin"
INFO[2024-03-26T17:16:26.745025083+08:00] loading plugin "io.containerd.internal.v1.restart"... type=io.containerd.internal.v1
INFO[2024-03-26T17:16:26.745082151+08:00] loading plugin "io.containerd.grpc.v1.healthcheck"... type=io.containerd.grpc.v1
INFO[2024-03-26T17:16:26.745305861+08:00] serving... address=/var/run/docker/containerd/containerd-debug.sock
INFO[2024-03-26T17:16:26.745376998+08:00] serving... address=/var/run/docker/containerd/containerd.sock.ttrpc
INFO[2024-03-26T17:16:26.745435296+08:00] serving... address=/var/run/docker/containerd/containerd.sock
INFO[2024-03-26T17:16:26.745598682+08:00] containerd successfully booted in 0.021086s
ERRO[2024-03-26T17:16:26.754991991+08:00] failed to mount overlay: operation not permitted storage-driver=overlay2
ERRO[2024-03-26T17:16:26.755039267+08:00] exec: "fuse-overlayfs": executable file not found in $PATH storage-driver=fuse-overlayfs

I am encountering the aforementioned issue as well. After following the operations provided, I still get the same error.

@snowwalkk
Copy link

同样的错误:

$ cat /etc/default/docker
# Docker Upstart and SysVinit configuration file

#
# THIS FILE DOES NOT APPLY TO SYSTEMD
#
#   Please see the documentation for "systemd drop-ins":
#   https://docs.docker.com/engine/admin/systemd/
#

# Customize location of Docker binary (especially for development testing).
#DOCKERD="/usr/local/bin/dockerd"

# Use DOCKER_OPTS to modify the daemon startup options.
#DOCKER_OPTS="--dns 8.8.8.8 --dns 8.8.4.4"

# If you need Docker to use an HTTP proxy, it can also be specified here.
#export http_proxy="http://127.0.0.1:3128/"

# This is also a handy place to tweak where Docker's temporary files go.
#export DOCKER_TMPDIR="/mnt/bigdrive/docker-tmp"
DOCKER_OPTS="--iptables=false"
$ cat /var/log/docker.log
time="2023-06-02T17:49:46.298083500-03:00" level=info msg="Starting up"
time="2023-06-02T17:49:46.306070600-03:00" level=info msg="containerd not running, starting managed containerd"
time="2023-06-02T17:49:46.314806300-03:00" level=info msg="started new containerd process" address=/var/run/docker/containerd/containerd.sock module=libcontainerd pid=101
time="2023-06-02T17:49:46.376024500-03:00" level=info msg="starting containerd" revision=3dce8eb055cbb6872793272b4f20ed16117344f8 version=1.6.21
time="2023-06-02T17:49:46.391094600-03:00" level=info msg="loading plugin \"io.containerd.content.v1.content\"..." type=io.containerd.content.v1
time="2023-06-02T17:49:46.407420200-03:00" level=info msg="loading plugin \"io.containerd.snapshotter.v1.aufs\"..." type=io.containerd.snapshotter.v1
time="2023-06-02T17:49:46.428049700-03:00" level=info msg="skip loading plugin \"io.containerd.snapshotter.v1.aufs\"..." error="aufs is not supported (modprobe aufs failed: exit status 1 \"modprobe: FATAL: Module aufs not found in directory /lib/modules/4.4.0-19041-Microsoft\\n\"): skip plugin" type=io.containerd.snapshotter.v1
time="2023-06-02T17:49:46.428180300-03:00" level=info msg="loading plugin \"io.containerd.snapshotter.v1.btrfs\"..." type=io.containerd.snapshotter.v1
time="2023-06-02T17:49:46.428368000-03:00" level=info msg="skip loading plugin \"io.containerd.snapshotter.v1.btrfs\"..." error="path /var/lib/docker/containerd/daemon/io.containerd.snapshotter.v1.btrfs (wslfs) must be a btrfs filesystem to be used with the btrfs snapshotter: skip plugin" type=io.containerd.snapshotter.v1
time="2023-06-02T17:49:46.428404100-03:00" level=info msg="loading plugin \"io.containerd.snapshotter.v1.devmapper\"..." type=io.containerd.snapshotter.v1
time="2023-06-02T17:49:46.428434400-03:00" level=warning msg="failed to load plugin io.containerd.snapshotter.v1.devmapper" error="devmapper not configured"
time="2023-06-02T17:49:46.428466300-03:00" level=info msg="loading plugin \"io.containerd.snapshotter.v1.native\"..." type=io.containerd.snapshotter.v1
time="2023-06-02T17:49:46.428627600-03:00" level=info msg="loading plugin \"io.containerd.snapshotter.v1.overlayfs\"..." type=io.containerd.snapshotter.v1
time="2023-06-02T17:49:46.429035200-03:00" level=info msg="loading plugin \"io.containerd.snapshotter.v1.zfs\"..." type=io.containerd.snapshotter.v1
time="2023-06-02T17:49:46.429180800-03:00" level=info msg="skip loading plugin \"io.containerd.snapshotter.v1.zfs\"..." 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" type=io.containerd.snapshotter.v1
time="2023-06-02T17:49:46.429216400-03:00" level=info msg="loading plugin \"io.containerd.metadata.v1.bolt\"..." type=io.containerd.metadata.v1
time="2023-06-02T17:49:46.429267200-03:00" level=warning msg="could not use snapshotter devmapper in metadata plugin" error="devmapper not configured"
time="2023-06-02T17:49:46.429297900-03:00" level=info msg="metadata content store policy set" policy=shared
time="2023-06-02T17:49:46.436975300-03:00" level=info msg="loading plugin \"io.containerd.differ.v1.walking\"..." type=io.containerd.differ.v1
time="2023-06-02T17:49:46.437049300-03:00" level=info msg="loading plugin \"io.containerd.event.v1.exchange\"..." type=io.containerd.event.v1
time="2023-06-02T17:49:46.437094100-03:00" level=info msg="loading plugin \"io.containerd.gc.v1.scheduler\"..." type=io.containerd.gc.v1
time="2023-06-02T17:49:46.437180000-03:00" level=info msg="loading plugin \"io.containerd.service.v1.introspection-service\"..." type=io.containerd.service.v1
time="2023-06-02T17:49:46.437220500-03:00" level=info msg="loading plugin \"io.containerd.service.v1.containers-service\"..." type=io.containerd.service.v1
time="2023-06-02T17:49:46.437258200-03:00" level=info msg="loading plugin \"io.containerd.service.v1.content-service\"..." type=io.containerd.service.v1
time="2023-06-02T17:49:46.437286600-03:00" level=info msg="loading plugin \"io.containerd.service.v1.diff-service\"..." type=io.containerd.service.v1
time="2023-06-02T17:49:46.437372100-03:00" level=info msg="loading plugin \"io.containerd.service.v1.images-service\"..." type=io.containerd.service.v1
time="2023-06-02T17:49:46.437404700-03:00" level=info msg="loading plugin \"io.containerd.service.v1.leases-service\"..." type=io.containerd.service.v1
time="2023-06-02T17:49:46.437434600-03:00" level=info msg="loading plugin \"io.containerd.service.v1.namespaces-service\"..." type=io.containerd.service.v1
time="2023-06-02T17:49:46.437464000-03:00" level=info msg="loading plugin \"io.containerd.service.v1.snapshots-service\"..." type=io.containerd.service.v1
time="2023-06-02T17:49:46.437501800-03:00" level=info msg="loading plugin \"io.containerd.runtime.v1.linux\"..." type=io.containerd.runtime.v1
time="2023-06-02T17:49:46.437931900-03:00" level=info msg="loading plugin \"io.containerd.runtime.v2.task\"..." type=io.containerd.runtime.v2
time="2023-06-02T17:49:46.438182100-03:00" level=info msg="loading plugin \"io.containerd.monitor.v1.cgroups\"..." type=io.containerd.monitor.v1
time="2023-06-02T17:49:46.438770300-03:00" level=info msg="loading plugin \"io.containerd.service.v1.tasks-service\"..." type=io.containerd.service.v1
time="2023-06-02T17:49:46.438818000-03:00" level=info msg="loading plugin \"io.containerd.grpc.v1.introspection\"..." type=io.containerd.grpc.v1
time="2023-06-02T17:49:46.438850300-03:00" level=info msg="loading plugin \"io.containerd.internal.v1.restart\"..." type=io.containerd.internal.v1
time="2023-06-02T17:49:46.438930400-03:00" level=info msg="loading plugin \"io.containerd.grpc.v1.containers\"..." type=io.containerd.grpc.v1
time="2023-06-02T17:49:46.438969400-03:00" level=info msg="loading plugin \"io.containerd.grpc.v1.content\"..." type=io.containerd.grpc.v1
time="2023-06-02T17:49:46.438998500-03:00" level=info msg="loading plugin \"io.containerd.grpc.v1.diff\"..." type=io.containerd.grpc.v1
time="2023-06-02T17:49:46.439025600-03:00" level=info msg="loading plugin \"io.containerd.grpc.v1.events\"..." type=io.containerd.grpc.v1
time="2023-06-02T17:49:46.439062000-03:00" level=info msg="loading plugin \"io.containerd.grpc.v1.healthcheck\"..." type=io.containerd.grpc.v1
time="2023-06-02T17:49:46.439100700-03:00" level=info msg="loading plugin \"io.containerd.grpc.v1.images\"..." type=io.containerd.grpc.v1
time="2023-06-02T17:49:46.439128700-03:00" level=info msg="loading plugin \"io.containerd.grpc.v1.leases\"..." type=io.containerd.grpc.v1
time="2023-06-02T17:49:46.439155400-03:00" level=info msg="loading plugin \"io.containerd.grpc.v1.namespaces\"..." type=io.containerd.grpc.v1
time="2023-06-02T17:49:46.439192800-03:00" level=info msg="loading plugin \"io.containerd.internal.v1.opt\"..." type=io.containerd.internal.v1
time="2023-06-02T17:49:46.439320700-03:00" level=info msg="loading plugin \"io.containerd.grpc.v1.snapshots\"..." type=io.containerd.grpc.v1
time="2023-06-02T17:49:46.439352000-03:00" level=info msg="loading plugin \"io.containerd.grpc.v1.tasks\"..." type=io.containerd.grpc.v1
time="2023-06-02T17:49:46.439381500-03:00" level=info msg="loading plugin \"io.containerd.grpc.v1.version\"..." type=io.containerd.grpc.v1
time="2023-06-02T17:49:46.439408900-03:00" level=info msg="loading plugin \"io.containerd.tracing.processor.v1.otlp\"..." type=io.containerd.tracing.processor.v1
time="2023-06-02T17:49:46.439438900-03:00" level=info msg="skip loading plugin \"io.containerd.tracing.processor.v1.otlp\"..." error="no OpenTelemetry endpoint: skip plugin" type=io.containerd.tracing.processor.v1
time="2023-06-02T17:49:46.439472800-03:00" level=info msg="loading plugin \"io.containerd.internal.v1.tracing\"..." type=io.containerd.internal.v1
time="2023-06-02T17:49:46.439519900-03:00" level=error msg="failed to initialize a tracing processor \"otlp\"" error="no OpenTelemetry endpoint: skip plugin"
time="2023-06-02T17:49:46.477734300-03:00" level=info msg=serving... address=/var/run/docker/containerd/containerd-debug.sock
time="2023-06-02T17:49:46.479396900-03:00" level=info msg=serving... address=/var/run/docker/containerd/containerd.sock.ttrpc
time="2023-06-02T17:49:46.479941700-03:00" level=info msg=serving... address=/var/run/docker/containerd/containerd.sock
time="2023-06-02T17:49:46.479988400-03:00" level=info msg="containerd successfully booted in 0.105152s"
time="2023-06-02T17:49:46.540902300-03:00" level=info msg="[graphdriver] using prior storage driver: overlay2"
time="2023-06-02T17:49:46.541517300-03:00" level=info msg="Loading containers: start."
time="2023-06-02T17:49:46.541793700-03:00" level=info msg="falling back to default port range 49153-65535" error="open /proc/sys/net/ipv4/ip_local_port_range: no such file or directory"
time="2023-06-02T17:49:46.726748800-03:00" level=warning msg="Could not load necessary modules for IPSEC rules: protocol not supported"
time="2023-06-02T17:49:46.757517300-03:00" level=warning msg="Could not load necessary modules for Conntrack: Running modprobe nf_conntrack failed with message: `modprobe: WARNING: Module nf_conntrack not found in directory /lib/modules/4.4.0-19041-Microsoft`, error: exit status 1"
time="2023-06-02T17:49:46.813651000-03:00" level=error msg="Failed to create bridge docker0 via netlink" error="permission denied"
time="2023-06-02T17:49:46.820214900-03:00" level=info msg="stopping event stream following graceful shutdown" error="<nil>" module=libcontainerd namespace=moby
time="2023-06-02T17:49:46.823141500-03:00" level=info msg="stopping healthcheck following graceful shutdown" module=libcontainerd
time="2023-06-02T17:49:46.823284000-03:00" level=info msg="stopping event stream following graceful shutdown" error="context canceled" module=libcontainerd namespace=plugins.moby
failed to start daemon: Error initializing network controller: Error creating default "bridge" network: permission denied

I had the same problem. Did you solve it

@richard-leon-130524
Copy link

richard-leon-130524 commented May 17, 2024

Same error!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants