[root@iZuf6boi8ejfovwda7q1ynZ ~]# docker start some-piwik
Error response from daemon: driver failed programming external connectivity on endpoint some-piwik (2ef09f672f43162e281d97f30a21dd392c56c2bb72acd5cc6fb093245831fba2): iptables failed: iptables --wait -t nat -A DOCKER -p tcp -d 0/0 --dport 8082 -j DNAT --to-destination 192.168.0.5:80 ! -i docker0: iptables: No chain/target/match by that name.
1:停止docker
[root@iZuf6boi8ejfovwda7q1ynZ ~]# service docker stop
Redirecting to /bin/systemctl stop docker.service
[root@iZuf6boi8ejfovwda7q1ynZ ~]# docker ps
Cannot connect to the Docker daemon. Is the docker daemon running on this host?
2:保存iptables
[root@iZuf6boi8ejfovwda7q1ynZ ~]# iptables-save > /etc/sysconfig/iptables
3:启动docker
[root@iZuf6boi8ejfovwda7q1ynZ ~]# service docker startRedirecting to /bin/systemctl start docker.service
[root@iZuf6boi8ejfovwda7q1ynZ ~]# docker start some-piwik
some-piwik