无法启动docker,

sudo journalctl -u docker.service

查到报"ZONE_CONFLICT: 'docker0' already bound to a zone"。

查看防火墙配置:

 sudo firewall-cmd --list-all-zones

看到

trusted (active)
  target: ACCEPT
  icmp-block-inversion: no
  interfaces: docker0
  sources:
  services:
  ports:
  protocols:
  masquerade: no
  forward-ports:
  source-ports:
  icmp-blocks:
  rich rules:

这是错误配置防火墙引起

sudo firewall-cmd --zone=trusted --remove-interface=docker0 --permanent
#解决方法,从信任区删除docker0 
sudo firewall-cmd --get-zone-of-interface=docker0
sudo firewall-cmd --reload

启动服务并检查服务状态

sudo systemctl start docker.service
sudo systemctl status docker.service

Logo

权威|前沿|技术|干货|国内首个API全生命周期开发者社区

更多推荐