首页 技术 正文
技术 2022年11月13日
0 收藏 456 点赞 3,090 浏览 2464 个字
[root@localhost ~]# systemctl start docker
Job for docker.service failed because the control process exited with error code. See "syste
mctl status docker.service" and "journalctl -xe" for details.

查看错误信息:

 [root@localhost ~]# docker -v
Docker version 1.13., build b2f74b2/1.13.
 [root@localhost ~]# systemctl status docker.service -l
● docker.service - Docker Application Container Engine
Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Wed -- :: EDT; 14min ago
Docs: http://docs.docker.com
Process: ExecStart=/usr/bin/dockerd-current --add-runtime docker-runc=/usr/libexec/docker/docker-runc-current --default-runtime=docker-runc --exec-opt native.cgroupdriver=systemd --userland-
proxy-path=/usr/libexec/docker/docker-proxy-current --init-path=/usr/libexec/docker/docker-init-current --seccomp-profile=/etc/docker/seccomp.json $OPTIONS $DOCKER_STORAGE_OPTIONS $DOCKER_NETWORK_O
PTIONS $ADD_REGISTRY $BLOCK_REGISTRY $INSECURE_REGISTRY $REGISTRIES (code=exited, status=/FAILURE)
Main PID: (code=exited, status=/FAILURE) Jun :: localhost.localdomain systemd[]: Starting Docker Application Container Engine...
Jun :: localhost.localdomain dockerd-current[]: time="2019-06-19T04:25:24.402861259-04:00" level=warning msg="could not change group /var/run/docker.sock to docker: group docker not fo
und"
Jun :: localhost.localdomain dockerd-current[]: time="2019-06-19T04:25:24.418276049-04:00" level=info msg="libcontainerd: new containerd process, pid: 5417"
Jun :: localhost.localdomain dockerd-current[]: time="2019-06-19T04:25:25.440697173-04:00" level=warning msg="overlay2: the backing xfs filesystem is formatted without d_type support,
which leads to incorrect behavior. Reformat the filesystem with ftype= to enable d_type support. Running without d_type support will no longer be supported in Docker 1.16."
Jun :: localhost.localdomain dockerd-current[]: Error starting daemon: SELinux is not supported with the overlay2 graph driver on this kernel. Either boot into a newer kernel or disabl
e selinux in docker (--selinux-enabled=false)
Jun :: localhost.localdomain systemd[]: docker.service: main process exited, code=exited, status=/FAILURE
Jun :: localhost.localdomain systemd[]: Failed to start Docker Application Container Engine.
Jun :: localhost.localdomain systemd[]: Unit docker.service entered failed state.
Jun :: localhost.localdomain systemd[]: docker.service failed.

关键信息:SELinux is not supported with the overlay2 graph driver on this kernel.

分析原因:此linux的内核中的SELinux不支持 overlay2 graph driver

    重新编辑docker配置文件: vi /etc/sysconfig/docker

    修改 –selinux-enabled=false

重新启动docker: [root@localhost ~]# systemctl start docker

启动成功!

相关推荐
python开发_常用的python模块及安装方法
adodb:我们领导推荐的数据库连接组件bsddb3:BerkeleyDB的连接组件Cheetah-1.0:我比较喜欢这个版本的cheeta…
日期:2022-11-24 点赞:878 阅读:9,085
Educational Codeforces Round 11 C. Hard Process 二分
C. Hard Process题目连接:http://www.codeforces.com/contest/660/problem/CDes…
日期:2022-11-24 点赞:807 阅读:5,560
下载Ubuntn 17.04 内核源代码
zengkefu@server1:/usr/src$ uname -aLinux server1 4.10.0-19-generic #21…
日期:2022-11-24 点赞:569 阅读:6,409
可用Active Desktop Calendar V7.86 注册码序列号
可用Active Desktop Calendar V7.86 注册码序列号Name: www.greendown.cn Code: &nb…
日期:2022-11-24 点赞:733 阅读:6,182
Android调用系统相机、自定义相机、处理大图片
Android调用系统相机和自定义相机实例本博文主要是介绍了android上使用相机进行拍照并显示的两种方式,并且由于涉及到要把拍到的照片显…
日期:2022-11-24 点赞:512 阅读:7,819
Struts的使用
一、Struts2的获取  Struts的官方网站为:http://struts.apache.org/  下载完Struts2的jar包,…
日期:2022-11-24 点赞:671 阅读:4,902