码迷,mamicode.com
首页 > 其他好文 > 详细

docker启动时报错Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details.

时间:2020-02-08 11:35:44      阅读:94      评论:0      收藏:0      [点我收藏+]

标签:ica   nes   creat   test   operation   ice   you   dai   sysconfig   

这里报错主要是因为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 "systemctl status docker.service" and "journalctl -xe" for details.

标签:ica   nes   creat   test   operation   ice   you   dai   sysconfig   

原文地址:https://www.cnblogs.com/weisunblog/p/12275748.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!