我正在尝试在 Windows 10 计算机上的 WSL-2 中运行的 Ubuntu 22.04.3 LTS 中运行 docker。
我已按照此处的说明进行操作。但它仍然不起作用,当我运行时出现以下错误sudo dockerd
:
failed to register "bridge" driver: failed to create NAT chain DOCKER:
iptables failed: iptables -t nat -N DOCKER:
iptables v1.8.7 (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)
当我这样做时,modprobe ip_tables
我得到:
modprobe: FATAL: Module ip_tables not found in directory /lib/modules/4.4.0-22621-Microsoft