Dokcer六之本地镜像提交到阿里云

image.png

把之前的1.3镜像升级为1.4版本

1、docker run -it mycentos:1.3

2、docker commit -a jinkuang -m "mycentos 1.4 version" 运行的容器ID mycentos:1.4


问题:

    

docker: Error response from daemon: driver failed programming external connectivity on endpoint myt9 (94be45f4a5453d1ea5c1fe909eca2634f18a3199cf3186c2da05276206d93e3c):  (iptables failed: iptables --wait -t nat -A DOCKER -p tcp -d 0/0 --dport 9080 -j DNAT --to-destination 172.17.0.2:8080 ! -i docker0: iptables: No chain/target/match by that name.

解决方法:重启docker,service docker restart