centos7下docker报错处理

报错一:启动/关闭docker时报Failed to stop service.docker.service: Unit service.docker.service not loaded.

解决方法:检查  /etc/docker/daemon*  配置docker加速器的文件中:{"registry-mirrors": ["http://34df6785.m.daocloud.io"],}是否加了逗号,去掉逗号就可以了


报错二:在创建容器时报错:Error response from daemon: driver failed programming external connectivity on endpoint pmm-server (45a55dcf32ec586c8ec940e06aae813634d1cb024e405350b8a1cd1db50bf731): iptables failed: iptables --wait -t nat -A DOCKER -p tcp -d 0/0 --dport 8088 -j DNAT --to-destination 172.17.0.3:80 ! -idocker0: iptables: No chain/target/match by that name.

处理方法:重启docker就可以了

你可能感兴趣的:(centos7下docker报错处理)