大网数据广告活动
服务器运维问答

docker-ce worked on CentOS 7 VPS but no longer works

· 52CE 我爱测

In middle of September I've rented CentOS 7 VPS, installed docker-ce from stable repo there, according to the docs and all was fine. Today I've realized that docker daemon doesn't working. I've failed to start it with # systemctl…

问题原文

原帖链接 · Storm · CC BY-SA 4.0

In middle of September I've rented CentOS 7 VPS, installed docker-ce from stable repo there, according to the docs and all was fine.

Today I've realized that docker daemon doesn't working. I've failed to start it with

# systemctl start docker

and all what I've found with

journalctl -xe` 

was

ноя 15 18:19:06 *hostname* systemd[1]: containerd.service: control process exited, code=exited status=1

I've tried to reinstall docker-ce, but still cannot start it:

ноя 15 18:19:06 *hostname* sudo[24909]: myuser : TTY=pts/5 ; PWD=/home/myuser ; USER=root ; COMMAND=/bin/systemctl start docker
ноя 15 18:19:06 *hostname* systemd[1]: Starting containerd container runtime...
-- Subject: Начинается запуск юнита containerd.service
-- Defined-By: systemd
-- Support: <link>
-- 
-- Начат процесс запуска юнита containerd.service.
ноя 15 18:19:06 *hostname* systemd[1]: Starting Docker Application Container Engine...
-- Subject: Начинается запуск юнита docker.service
-- Defined-By: systemd
-- Support: <link>
-- 
-- Начат процесс запуска юнита docker.service.
ноя 15 18:19:06 *hostname* systemd[1]: containerd.service: control process exited, code=exited status=1
ноя 15 18:19:06 *hostname* systemd[1]: Failed to start containerd container runtime.
-- Subject: Ошибка юнита containerd.service
-- Defined-By: systemd
-- Support: <link>
-- 
-- Произошел сбой юнита containerd.service.
-- 
-- Результат: failed.
ноя 15 18:19:06 *hostname* systemd[1]: Dependency failed for Docker Application Container Engine.
-- Subject: Ошибка юнита docker.service
-- Defined-By: systemd
-- Support: <link>
-- 
-- Произошел сбой юнита docker.service.
-- 
-- Результат: dependency.
ноя 15 18:19:06 *hostname* systemd[1]: Job docker.service/start failed with result 'dependency'.
ноя 15 18:19:06 *hostname* systemd[1]: Unit containerd.service entered failed state.

What should I do to figure out problem more specific and fix it?

已采纳解答

原帖链接 · Chaoxiang N · CC BY-SA 4.0

You most probably face this issue https://github.com/docker/for-linux/issues/475

Remove modprobe overlay from containerd unit, which is a dependency for docker unit

One possible solution is to use systemd override features as described in the provided url

# cat /etc/systemd/system/containerd.service.d/override.conf
[Service]
ExecStartPre=

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2018-11-15)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。