FATA[0000] Error mounting devices cgroup: mountpoint fordevices not found
这个错误为cgroup在宿主机上没有挂载。
我们编辑挂载上去
vi /etc/fstab
#在结尾添加
none /sys/fs/cgroup cgroup defaults 0 0
然后执行reboot重启服务器。
重启完成后我们检查下docker是否运行
[root@xiaohuai ~]# sudo service docker status
docker (pid 1431)is running...
接着我们再试着获取一个镜像
[root@xiaohuai docker]# docker pull centos
latest: Pulling from centos
47d44cb6f252: Pull complete
168a69b62202: Pull complete
812e9d9d677f: Pull complete
4234bfdd88f8: Pull complete
ce20c473cd8a: Pull complete
Digest:sha256:c96eeb93f2590858b9e1396e808d817fa0ba4076c68b59395445cb957b524408
Status: Downloaded newer image for centos:latest
成功了!