Docker容器映射或启动容器时错误

Question

WARNING: IPv4 forwarding is disabled. Networking will not work.
docker: Error response from daemon: driver failed programming external connectivity on endpoint lucid_shannon (d751ee71774e8197e147a6488a5c1aad38f18030410ad3b68bc24a6d0168309c): (iptables failed: iptables --wait -t nat -A DOCKER -p tcp -d 0/0 --dport 8080 -j DNAT --to-destination 172.18.0.2:8080 ! -i docker0: iptables: No chain/target/match by that name.
(exit status 1)).


Answer

重启Docker 容器

systemctl restart docker
posted @ 2020-03-30 18:10  小喵钓鱼  阅读(50)  评论(1编辑  收藏