问题:
设置 "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 可以查看日志
- 在 /lib/systemd/system/docker.service 中去掉 -H fd://
- systemctl daemon-reload
- systemctl restart docker