Centos7运行Docker1.13.1报错Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled; vendor pres

Centos 7 下载Docker 之后 运行时出现错误,错误信息如下:

 systemctl start docker

[root@hadoop14 sysconfig]# 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 日 2021-01-17 21:47:48 PST; 2min 35s ago
     Docs: http://docs.docker.com
  Process: 3442 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: 3442 (code=exited, status=1/FAILURE)

1月 17 21:47:47 hadoop14 systemd[1]: Starting Docker Application Container Engine...
1月 17 21:47:47 hadoop14 dockerd-current[3442]: time="2021-01-17T21:47:47.438642956-08:00" level=warning msg="could not change group /var/run...t found"
1月 17 21:47:47 hadoop14 dockerd-current[3442]: time="2021-01-17T21:47:47.445339673-08:00" level=info msg="libcontainerd: new containerd proc...d: 3447"
1月 17 21:47:48 hadoop14 dockerd-current[3442]: time="2021-01-17T21:47:48.457951619-08:00" level=warning msg="overlay2: the backing xfs filesystem is...
1月 17 21:47:48 hadoop14 dockerd-current[3442]: Error starting daemon: SELinux is not supported with the overlay2 graph driver on this kernel...d=false)
1月 17 21:47:48 hadoop14 systemd[1]: docker.service: main process exited, code=exited, status=1/FAILURE
1月 17 21:47:48 hadoop14 systemd[1]: Failed to start Docker Application Container Engine.
1月 17 21:47:48 hadoop14 systemd[1]: Unit docker.service entered failed state.
1月 17 21:47:48 hadoop14 systemd[1]: docker.service failed.
Hint: Some lines were ellipsized, use -l to show in full.

进入目录

cd /etc/sysconfig

修改配置

 vi docker 

在这里插入图片描述

启动Docker

 systemctl start docker

查看状态

[root@hadoop14 sysconfig]# docker info

Containers: 2
 Running: 2
 Paused: 0
 Stopped: 0
Images: 2
Server Version: 1.13.1
Storage Driver: overlay2
 Backing Filesystem: xfs
 Supports d_type: false
 Native Overlay Diff: false
Logging Driver: journald
Cgroup Driver: systemd
Plugins: 
 Volume: local
 Network: bridge host macvlan null overlay
Swarm: inactive
Runtimes: docker-runc runc
Default Runtime: docker-runc
Init Binary: /usr/libexec/docker/docker-init-current
containerd version:  (expected: aa8187dbd3b7ad67d8e5e3a15115d3eef43a7ed1)
runc version: 66aedde759f33c190954815fb765eedc1d782dd9 (expected: 9df8b306d01f59d3a8029be411de015b7304dd8f)
init version: fec3683b971d9c3ef73f284f176672c44b448662 (expected: 949e6facb77383876aeff8a6944dde66b3089574)
Security Options:
 seccomp
  WARNING: You're not using the default seccomp profile
  Profile: /etc/docker/seccomp.json
Kernel Version: 3.10.0-327.el7.x86_64
Operating System: CentOS Linux 7 (Core)
OSType: linux
Architecture: x86_64
Number of Docker Hooks: 3
CPUs: 1
Total Memory: 1.782 GiB
Name: hadoop14
ID: WFJQ:XFND:YVAY:MBBL:5XQK:HUKU:DYPY:P2SX:AYI3:C2NP:DKZX:CBQW
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
WARNING: bridge-nf-call-iptables is disabled
WARNING: bridge-nf-call-ip6tables is disabled
Experimental: false
Insecure Registries:
 127.0.0.0/8
Registry Mirrors:
 https://docker.mirrors.ustc.edu.cn
Live Restore Enabled: false
Registries: docker.io (secure)

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值