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

问题:

设置 "hosts" key 后,docker服务启动报错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 能够查看日志json

  1. 在 /lib/systemd/system/docker.service 中去掉 -H fd://
  2. systemctl daemon-reload
  3. systemctl restart docker
相关文章
相关标签/搜索