docker启动时报错Job for docker.service failed because the control process exited with error code. See &qu

Posted weisunblog

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了docker启动时报错Job for docker.service failed because the control process exited with error code. See &qu相关的知识,希望对你有一定的参考价值。

这里报错主要是因为docker启动时需要默认开启selinux,但是可能由于安装某些应用,我们关闭了selinux,所以此时我们需要设置/etc/sysconfig/docker

将下图标黄位置改为false,即设置docker启动时默认不需要开启selinux

# /etc/sysconfig/docker

# Modify these options if you want to change the way the docker daemon runs
OPTIONS=--selinux-enabled=false --log-driver=journald --signature-verification=false
if [ -z "${DOCKER_CERT_PATH}" ]; then
    DOCKER_CERT_PATH=/etc/docker
fi

# Do not add registries in this file anymore. Use /etc/containers/registries.conf
# instead. For more information reference the registries.conf(5) man page.

# Location used for temporary files, such as those created by
# docker load and build operations. Default is /var/lib/docker/tmp
# Can be overriden by setting the following environment variable.
# DOCKER_TMPDIR=/var/tmp

# Controls the /etc/cron.daily/docker-logrotate cron job status.
# To disable, uncomment the line below.
# LOGROTATE=false

# docker-latest daemon can be used by starting the docker-latest unitfile.
# To use docker-latest client, uncomment below lines
#DOCKERBINARY=/usr/bin/docker-latest
#DOCKERDBINARY=/usr/bin/dockerd-latest

 

以上是关于docker启动时报错Job for docker.service failed because the control process exited with error code. See &qu的主要内容,如果未能解决你的问题,请参考以下文章

启动 docker 容器时报错

docker jetty启动时报错 failed setting default capabilities.

CentOS7安装docker 启动失败:Job for docker.service failed... 解决办法

docker搭建harbor私有仓库时报错怎么办?

docker搭建harbor私有仓库时报错怎么办?

docker搭建harbor私有仓库时报错怎么办?