侧边栏壁纸
博主头像
落叶人生博主等级

走进秋风,寻找秋天的落叶

  • 累计撰写 130562 篇文章
  • 累计创建 28 个标签
  • 累计收到 9 条评论
标签搜索

目 录CONTENT

文章目录

docker 端口映射错误解决方法

2023-11-11 星期六 / 0 评论 / 0 点赞 / 58 阅读 / 470 字

COMMAND_FAILED: '/sbin/iptables -t nat -ADocker-p tcp -d 0/0 --dport 8111 -j DNAT --to-destination 1

COMMAND_FAILED: '/sbin/iptables -t nat -A Docker -p tcp -d 0/0 --dport 8111 -j DNAT --to-destination 172.17.0.6:8111 ! -i docker0' failed: iptables: No chain/target/match by that name.

 

pkill docker

iptables -t nat -F
ifconfig docker0 down

brctl delbr docker0

重启docker后解决

参考文章
http://www.linuxidc.com/Linux/2015-02/113141.htm

广告 广告

评论区