赞
踩
docker启动失败,报错信息如下
failed to start daemon: Error initializing network controller: Error creating default "bridge" network: Failed to program NAT chain: INVALID_ZONE: docker
systemctl stop firewalld
systemctl disable firewalld
dockerd --iptables=false
firewall-cmd --get-active-zones
如果没有docker zone,则手动添加
firewall-cmd --new-zone=docker --permanent
firewall-cmd --reload
添加docker0网卡
firewall-cmd --zone=docker --add-interface=docker0
firewall-cmd --reload
systemctl restart firewalld
再次查看zone的激活状态,如下应该就可以了
docker
interfaces: docker0
public
interfaces: enp0s3 enp0s8
如果还是不可以,将docker zone重命名为docker0
firewall-cmd --zone=docker --change-zone=docker0
firewallc-cmd --reload
systemctl restart firewalld
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。