Centos 下安装Docker 遇到的一些错误

1.公司的服务器的内核版本:2.6.32-431.23.3.el6_x86_64

如何升级内核请参考前一篇文章

2.在这个地址上面下载 的 https://test.docker.com/builds/Linux/x86_64/docker-1.10.0

这个是最新的docker

但是没有配置文件

下载下来直接就可以用了

把它放到 cp .. /usr/bin/docker

docker deaemon 这样启动

[root@MMD-GEN ~]# docker daemon
WARN[0000] devmapper: Udev sync is not supported. This will lead to unexpected behavior, data loss and errors. For more information, see https://docs.docker.com/reference/commandline/daemon/#daemon-storage-driver-option
WARN[0000] devmapper: Usage of loopback devices is strongly discouraged for production use. Please use `--storage-opt dm.thinpooldev` or use `man docker` to refer to dm.thinpooldev section.
WARN[0000] devmapper: Base device already exists and has filesystem ext4 on it. User specified filesystem will be ignored.
INFO[0000] [graphdriver] using prior storage driver "devicemapper"
INFO[0000] Graph migration to content-addressability took 0.00 seconds
INFO[0000] Default bridge (docker0) is assigned with an IP address 172.17.0.0/16. Daemon option --bip can be used to set a preferred IP address
WARN[0000] Your kernel does not support cgroup memory limit: mountpoint for memory not found
WARN[0000] mountpoint for cpu not found
WARN[0000] mountpoint for blkio not found
WARN[0000] mountpoint for cpuset not found
FATA[0000] Error starting daemon: Devices cgroup isn't mounted

报了个错

这个错误为cgroup在宿主机上没有挂载。
我们编辑挂载上去

1
2
3
vi /etc/fstab
#在结尾添加
none        /sys/fs/cgroup        cgroup        defaults    0    0

然后执行reboot重启服务器。

然后,世界又再一次的安静了

 

你可能感兴趣的:(Centos 下安装Docker 遇到的一些错误)