今天在kubernetes环境和docker环境之间切换存储目录,重启虚机后发现docker服务无法启动!
参考地址
docker.service failed. See 'journalctl -xe' for details
[root@master ~]# systemctl status docker -l
● docker.service - Docker Application Container Engine
Loaded: loaded (/etc/systemd/system/docker.service; enabled; vendor preset: disabled)
Active: inactive (dead)
Docs: https://docs.docker.com
Sep 27 08:52:18 master systemd[1]: Dependency failed for Docker Application Container Engine.
Sep 27 08:52:18 master systemd[1]: Job docker.service/start failed with result 'dependency'.
Sep 27 08:55:29 master systemd[1]: Dependency failed for Docker Application Container Engine.
Sep 27 08:55:29 master systemd[1]: Job docker.service/start failed with result 'dependency'.
Sep 27 08:57:04 master systemd[1]: Dependency failed for Docker Application Container Engine.
Sep 27 08:57:04 master systemd[1]: Job docker.service/start failed with result 'dependency'.
Sep 27 08:58:40 master systemd[1]: Dependency failed for Docker Application Container Engine.
Sep 27 08:58:40 master systemd[1]: Job docker.service/start failed with result 'dependency'.
试图卸载docker并重新安装它,但它引发了相同的错误是docker守护进程正在运行。
解决办法:文章来源:https://www.toymoban.com/news/detail-556125.html
vim /etc/systemd/system/multi-user.target.wants/docker.service 或者 find /etc -name docker.service
修改:
ExecStart=/usr/bin/dockerd --graph=/data/docker/ -H unix://
Life is like a cup of tea, not bitter for a lifetime, but it will be bitter for a while文章来源地址https://www.toymoban.com/news/detail-556125.html
到了这里,关于Job docker.service/start failed with result ‘dependency‘的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!