1、启动docker报错:
# service docker stop Stopping docker: [ OK ] [root@RSING data2]# service docker start Starting cgconfig service: Error: cannot mount cpuset to /cgroup/cpuset: Device or resource busy /sbin/cgconfigparser; error loading /etc/cgconfig.conf: Cgroup mounting failed Failed to parse /etc/cgconfig.conf or /etc/cgconfig.d [FAILED] Starting docker: [ OK ]
上面最后一行看着貌似是启动起来了,但是在使用docker运行容器的时候报如下错误:
Error response from daemon: Cannot start container b38bdabe7c898a89ffbe031124fea07b3eb5a0f73a083a5cef28de82748c4f2e: [8] System error: mkdir /cgroup/docker/b38bdabe7c898a89ffbe031124fea07b3eb5a0f73a083a5cef28de82748c4f2e: invalid argument
2、解决:
猜测是由于cgconfig没有运行
#/etc/init.d/cgconfig status # /etc/init.d/cgconfig restart # /etc/init.d/docker restart
我是这种方式解决了我的问他
借鉴:
https://stackoverflow.com/questions/25183063/docker-on-rhel-6-cgroup-mounting-failing