当前位置:   article > 正文

docker daemon.json肯多多_daemon.json daemon.conf

daemon.json daemon.conf

修改了harbor,想传个镜像到Registry,结果改了daemon就出错了

异常如下:

  1. [root@localhost docker]# systemctl status docker.service
  2. ● docker.service - Docker Application Container Engine
  3. Loaded: loaded (/usr/lib/systemd/system/docker.service; enabled; vendor preset: disabled)
  4. Active: failed (Result: start-limit) since 一 2021-03-15 10:29:53 CST; 2min 57s ago
  5. Docs: https://docs.docker.com
  6. Process: 9581 ExecStart=/usr/bin/dockerd -H fd:// $DOCKER_OPT (code=exited, status=1/FAILURE)
  7. Main PID: 9581 (code=exited, status=1/FAILURE)
  8. 3月 15 10:29:51 localhost.localdomain systemd[1]: docker.service failed.
  9. 3月 15 10:29:53 localhost.localdomain systemd[1]: docker.service holdoff time over, scheduling restart.
  10. 3月 15 10:29:53 localhost.localdomain systemd[1]: Stopped Docker Application Container Engine.
  11. 3月 15 10:29:53 localhost.localdomain systemd[1]: start request repeated too quickly for docker.service
  12. 3月 15 10:29:53 localhost.localdomain systemd[1]: Failed to start Docker Application Container Engine.
  13. 3月 15 10:29:53 localhost.localdomain systemd[1]: Unit docker.service entered failed state.
  14. 3月 15 10:29:53 localhost.localdomain systemd[1]: docker.service failed.
  15. 3月 15 10:30:01 localhost.localdomain systemd[1]: start request repeated too quickly for docker.service
  16. 3月 15 10:30:01 localhost.localdomain systemd[1]: Failed to start Docker Application Container Engine.
  17. 3月 15 10:30:01 localhost.localdomain systemd[1]: docker.service failed.

后来再看看异常信息,是docker启动服务报错了

  1. [root@localhost docker]# systemctl start docker
  2. Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details.

修改了daemon文件,然后出现这个问题

  1. [root@localhost docker]# systemctl daemon-reload;service docker restart
  2. Redirecting to /bin/systemctl restart docker.service
  3. Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details.

最后定位到原因,需要改后缀,把daemon.json,改daemon.conf

  1. [root@localhost docker]# mv daemon.json daemon.conf
  2. [root@localhost docker]# systemctl daemon-reload;service docker restart
  3. Redirecting to /bin/systemctl restart docker.service

 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/秋刀鱼在做梦/article/detail/978516
推荐阅读
相关标签
  

闽ICP备14008679号