设置 "hosts" key 后,docker服务启动报错

858 阅读1分钟

问题:

设置 "hosts" key 后,docker服务启动报错

unable to configure the Docker daemon with file /etc/docker/daemon.json  
docker.service: Failed with result 'start-limit-hit'

办法:

tips : journalctl -r -u docker 可以查看日志

  1. 在 /lib/systemd/system/docker.service 中去掉 -H fd://
  2. systemctl daemon-reload
  3. systemctl restart docker