赞
踩
修改了harbor,想传个镜像到Registry,结果改了daemon就出错了
异常如下:
- [root@localhost docker]# systemctl status docker.service
- ● docker.service - Docker Application Container Engine
- Loaded: loaded (/usr/lib/systemd/system/docker.service; enabled; vendor preset: disabled)
- Active: failed (Result: start-limit) since 一 2021-03-15 10:29:53 CST; 2min 57s ago
- Docs: https://docs.docker.com
- Process: 9581 ExecStart=/usr/bin/dockerd -H fd:// $DOCKER_OPT (code=exited, status=1/FAILURE)
- Main PID: 9581 (code=exited, status=1/FAILURE)
-
- 3月 15 10:29:51 localhost.localdomain systemd[1]: docker.service failed.
- 3月 15 10:29:53 localhost.localdomain systemd[1]: docker.service holdoff time over, scheduling restart.
- 3月 15 10:29:53 localhost.localdomain systemd[1]: Stopped Docker Application Container Engine.
- 3月 15 10:29:53 localhost.localdomain systemd[1]: start request repeated too quickly for docker.service
- 3月 15 10:29:53 localhost.localdomain systemd[1]: Failed to start Docker Application Container Engine.
- 3月 15 10:29:53 localhost.localdomain systemd[1]: Unit docker.service entered failed state.
- 3月 15 10:29:53 localhost.localdomain systemd[1]: docker.service failed.
- 3月 15 10:30:01 localhost.localdomain systemd[1]: start request repeated too quickly for docker.service
- 3月 15 10:30:01 localhost.localdomain systemd[1]: Failed to start Docker Application Container Engine.
- 3月 15 10:30:01 localhost.localdomain systemd[1]: docker.service failed.
后来再看看异常信息,是docker启动服务报错了
- [root@localhost docker]# systemctl start docker
- Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details.
修改了daemon文件,然后出现这个问题
- [root@localhost docker]# systemctl daemon-reload;service docker restart
- Redirecting to /bin/systemctl restart docker.service
- 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
- [root@localhost docker]# mv daemon.json daemon.conf
- [root@localhost docker]# systemctl daemon-reload;service docker restart
- Redirecting to /bin/systemctl restart docker.service
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。