Question:

Symptom After the “hosts” key is set, the Docker service starts incorrectly

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

Solution:

Tips: Journalctl-r-u Docker can view logs

  1. In the/lib/systemd/system/docker. Service removed – H fd: / /
  2. systemctl daemon-reload
  3. systemctl restart docker