问题
Docker在服务器上拉取DockerHub上镜像的时候,docker pull之后报错:
Error response from daemon: driver failed programming external connectivity on endpoint mynginx (7d1c56a9d6fb8159b21ffddf09e1e840511af586a856459c07fb2b82d531a41d): (iptables failed: iptables --wait -t nat -A DOCKER -p tcp -d 0/0 --dport 9090 -j DNAT --to-destination 172.17.0.3:80 ! -i docker0: iptables: No chain/target/match by that name.
解决办法
-
先重启Docker:systemctl restart docker
-
再去开启容器:docker run 容器名