【docker】iptables failed: iptables --wait -t nat -A DOCKER -p tcp -d 0/0 --dport

论坛 期权论坛 脚本     
匿名技术用户   2021-1-7 01:29   736   0

docker: Error response from daemon: driver failed programming external connectivity on endpoint rabbit (23226cc37e041918194494612e60ef1a3b5e42f430355c5b7ddb66ebd0a157fd): (iptables failed: iptables --wait -t nat -A DOCKER -p tcp -d 0/0 --dport 61613 -j DNAT --to-destination 172.17.0.5:61613 ! -i docker0: iptables: No chain/target/match by that name.
(exit status 1)).

启动docker容器时报错:

iptables failed: iptables --wait -t nat -A DOCKER -p tcp -d 0/0 --dport 5000 -j DNAT --to-destination 172.18.0.4:5000 ! -i br-ff45d935188b: iptables: No chain/target/match by that name. (exit status 1)

解决方案:重启docker

systemctl restart docker
分享到 :
0 人收藏
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

积分:7942463
帖子:1588486
精华:0
期权论坛 期权论坛
发布
内容

下载期权论坛手机APP