admin管理员组

文章数量:1640938

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
  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
Live Restore Enabled: false
Registries: docker.io (secure)

本文标签: 报错loadedusrlib