OpenWrt Docker提示code:500
标签搜索

OpenWrt Docker提示code:500

丶曲終人散ゞ
2024-08-05 / 0 评论 / 86 阅读 / 正在检测是否收录...

Containers: start 07828fc6b103...code:500 driver failed programming external connectivity on endpoint it-tools (9c53f28c05fbe0f138a3a8286b5de9c6158aa6832489fca424e6d14be70c1dcc): Unable to enable DNAT rule: (iptables failed: iptables --wait -t nat -A DOCKER -p tcp -d 0/0 --dport 8080 -j DNAT --to-destination 172.17.0.7:80 ! -i docker0: iptables: No chain/target/match by that name.
(exit status 1))

在 /etc/docker/daemon.json 中,开启iptables。

{
  "iptables": true
}

shell执行/etc/init.d/dockerd restart

0

评论 (0)

取消