今天安装下docker
https://blog.csdn.net/liyyzz33/article/details/86526320
跟着这个大哥做,结果装完了准备打开时报错
[root@localhost yum.repos.d]# systemctl status docker
● docker.service - Docker Application Container Engine
Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled; vendor preset: disabled)
Active: failed (Result: start-limit) since 日 2019-08-11 20:21:07 CST; 19min ago
Docs: https://docs.docker.com
Process: 3001 ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock (code=exited, status=1/FAILURE)
Main PID: 3001 (code=exited, status=1/FAILURE)
8月 11 20:21:05 localhost.localdomain systemd[1]: Failed to start Docker Application Container Engine.
8月 11 20:21:05 localhost.localdomain systemd[1]: Unit docker.service entered failed state.
8月 11 20:21:05 localhost.localdomain systemd[1]: docker.service failed.
8月 11 20:21:07 localhost.localdomain systemd[1]: docker.service holdoff time over, scheduling restart.
8月 11 20:21:07 localhost.localdomain systemd[1]: Stopped Docker Application Container Engine.
8月 11 20:21:07 localhost.localdomain systemd[1]: start request repeated too quickly for docker.service
8月 11 20:21:07 localhost.localdomain systemd[1]: Failed to start Docker Application Container Engine.
8月 11 20:21:07 localhost.localdomain systemd[1]: Unit docker.service entered failed state.
8月 11 20:21:07 localhost.localdomain systemd[1]: docker.service failed.
看不出来什么
百度了一下
用dockerd可以看到详细信息
INFO[2019-08-11T20:41:38.174622970+08:00] Starting up
INFO[2019-08-11T20:41:38.224147679+08:00] parsed scheme: "unix" module=grpc
INFO[2019-08-11T20:41:38.224174817+08:00] scheme "unix" not registered, fallback to default scheme module=grpc
INFO[2019-08-11T20:41:38.224200329+08:00] ccResolverWrapper: sending update to cc: {[{unix:///run/containerd/containerd.sock 0 <nil>}] } module=grpc
INFO[2019-08-11T20:41:38.224225384+08:00] ClientConn switching balancer to "pick_first" module=grpc
INFO[2019-08-11T20:41:38.224399891+08:00] pickfirstBalancer: HandleSubConnStateChange: 0xc000155140, CONNECTING module=grpc
INFO[2019-08-11T20:41:38.224837890+08:00] blockingPicker: the picked transport is not ready, loop back to repick module=grpc
INFO[2019-08-11T20:41:38.225524927+08:00] pickfirstBalancer: HandleSubConnStateChange: 0xc000155140, READY module=grpc
INFO[2019-08-11T20:41:38.226997931+08:00] parsed scheme: "unix" module=grpc
INFO[2019-08-11T20:41:38.227047362+08:00] scheme "unix" not registered, fallback to default scheme module=grpc
INFO[2019-08-11T20:41:38.227063776+08:00] ccResolverWrapper: sending update to cc: {[{unix:///run/containerd/containerd.sock 0 <nil>}] } module=grpc
INFO[2019-08-11T20:41:38.227089210+08:00] ClientConn switching balancer to "pick_first" module=grpc
INFO[2019-08-11T20:41:38.227163071+08:00] pickfirstBalancer: HandleSubConnStateChange: 0xc0002020e0, CONNECTING module=grpc
INFO[2019-08-11T20:41:38.228707628+08:00] pickfirstBalancer: HandleSubConnStateChange: 0xc0002020e0, READY module=grpc
WARN[2019-08-11T20:41:38.258790641+08:00] Usage of loopback devices is strongly discouraged for production use. Please use `--storage-opt dm.thinpooldev` or use `man dockerd` to refer to dm.thinpooldev section. storage-driver=devicemapper
INFO[2019-08-11T20:41:38.535313257+08:00] Creating filesystem xfs on device docker-253:1-69848188-base, mkfs args: [-m crc=0,finobt=0 /dev/mapper/docker-253:1-69848188-base] storage-driver=devicemapper
INFO[2019-08-11T20:41:38.536689297+08:00] Error while creating filesystem xfs on device docker-253:1-69848188-base: exit status 1 storage-driver=devicemapper
ERRO[2019-08-11T20:41:38.536709487+08:00] [graphdriver] prior storage driver devicemapper failed: exit status 1
倒数第三行和倒数第二行说创建xfs文件系统失败,又去百度了一下,要升级xfs版本
yum install xfsprogs
问题解决了
dockercloud镜像加速站
https://www.daocloud.io/mirror
便捷安装,还没试过
http://get.daocloud.io/