我想在Centos 6.5上尝试docker-io,但cgconfig守护进程无法启动:
/etc/init.d/cgconfig restart Stopping cgconfig service: [ OK ] Starting cgconfig service: Error: cannot mount cpuset to /cgroup/cpuset: Invalid argument /sbin/cgconfigparser; error loading /etc/cgconfig.conf: Cgroup mounting Failed Failed to parse /etc/cgconfig.conf or /etc/cgconfig.d [Failed]
cgconfig.conf的内容
mount { cpuset = /cgroup/cpuset; cpu = /cgroup/cpu; cpuacct = /cgroup/cpuacct; # memory = /cgroup/memory; devices = /cgroup/devices; freezer = /cgroup/freezer; net_cls = /cgroup/net_cls; blkio = /cgroup/blkio; }
建议here没有帮助
-bash-4.1$ls -l /cgroup total 12 drwxr-xr-x 2 root root 4096 Sep 1 08:34 cpuacct drwxr-xr-x 2 root root 4096 Sep 1 08:25 cpuset drwxr-xr-x 2 root root 4096 Sep 1 08:37 devices -bash-4.1$
UPDATE
Centos 6.5服务器是运行Virtuozzo(A Media Temple DV)的虚拟化服务器.似乎需要对托管公司不准备做的服务器的Virtuozzo供应进行一些更改.显然Virtuozzo支持在Centos 7中运行docker,但这不是我要追求的.更多信息here.底线是服务器运行的内核缺少一些docker需要运行的模块/配置.就我而言,这不值得做.