docker 敲入代码启动不了,
[root@localhost ~]# sudo service docker start
Redirecting to /bin/systemctl start docker.service
Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details.
[root@localhost ~]# systemctl status docker.service
● docker.service - Docker Application Container Engine
Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since 二 2018-07-24 15:55:38 CST; 35s ago
Docs: http://docs.docker.com
Process: 3613 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_OPTIONS $ADD_REGISTRY $BLOCK_REGISTRY $INSECURE_REGISTRY $REGISTRIES (code=exited, status=1/FAILURE)
Main PID: 3613 (code=exited, status=1/FAILURE)
7月 24 15:55:36 localhost.localdomain systemd[1]: Starting Docker Applicatio...
7月 24 15:55:37 localhost.localdomain dockerd-current[3613]: time="2018-07-2...
7月 24 15:55:37 localhost.localdomain dockerd-current[3613]: time="2018-07-2...
7月 24 15:55:38 localhost.localdomain dockerd-current[3613]: Error starting ...
7月 24 15:55:38 localhost.localdomain systemd[1]: docker.service: main proce...
7月 24 15:55:38 localhost.localdomain systemd[1]: Failed to start Docker App...
7月 24 15:55:38 localhost.localdomain systemd[1]: Unit docker.service entere...
7月 24 15:55:38 localhost.localdomain systemd[1]: docker.service failed.
Hint: Some lines were ellipsized, use -l to show in full.
出现了这样的报错,我们需要修改
vi /etc/sysconfig/docker
找到OPTIONS='--selinux-enabled --log-driver=journald --signature-verification=false'
找到这一行改为OPTIONS='--selinux-enabled=false --log-driver=journald --signature-verification=false'
也就是说在'--selinux-enabled后面加了=false
因篇幅问题不能全部显示,请点此查看更多更全内容