docker -v挂载数据卷网络异常的问题

时间:2022-04-16 14:09:40

  docker 删除容器并重新运行容器时报如下异常:

docker: Error response from daemon: failed to create endpoint tomcat001 on network bridge: COMMAND_FAILED: '/sbin/iptables -w2 -t nat -A DOCKER -p tcp -d 0/0 --dport 8090 -j DNAT --to-destination 172.17.0.3:8080 ! -i docker0' failed: iptables: No chain/target/match by that name..

  重启docker即可:

systemctl restart docker