docker rpm安装-docker 启动失败See "systemctl status docker.service" and "journalctl -xe" for details.

[root@techstar-cs bin]# 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.
下载安装时尽量不要下载最新安装包,这样有可能造成系统自带的安装包版本低,造成安装失败
查看是什么原因引起:systemctl status docker.service
docker rpm安装-docker 启动失败See
从错误信息上来看:驱动不支持
“[graphdriver] prior storage driver overlay2 failed: driver not supported”

解决办法:在 /etc/docker 目录下创建daemon.json文件,并且加入以下配置
touch daemon.json
vim daemon.json
{
“storage-driver”: “overlay2”, #存储驱动
“storage-opts”: [
“overlay2.override_kernel_check=true” #
]
}
在重新启动即可

你可能感兴趣的:(docker rpm安装-docker 启动失败See "systemctl status docker.service" and "journalctl -xe" for details.)