Description:
Docker was running fine early.But docker daemon can not start after host server force restarting.The reason to restart the host server is docker crashed it.
]#docker ps
Cannot connect to the Docker daemon. Is ‘docker -d’ running on this host?
]#service docker status
docker dead but subsys locked
Docker requires a 64-bit installation regardless of your Red Hat version. Docker
requires that your kernel must be 3.10 at minimum, which Red Hat 7 runs.
To check your current kernel version, open a terminal and use uname -r to
display your kernel version:
Thanks for your feedback.
I just use docker 1.7.1 which is not the latest docker version.
And this version was running stable before I run a yum update with my OS.
If I do not want to use Docker 1.9.
Do I still need upgrade my kernel to 3.10?
This problem has been solved.Hope the below solution can help.
**Root Cause:**
1.I've run "yum update" to upgrade kernel from 2.6.32-504.30.3.el6.x86_64 to 2.6.32-573.8.1.el6.x86_64.
2.After restart the Linux host,it will start with the new kernel version 2.6.32-573
3.Docker daemon crashed many times until can not be started after I use kernel 2.6.32-573 to run docker 1.7.1.
**Solution:**
1.Edit the Linux host grub.conf file to set the previous kernel version 2.6.32-504 as default one.
2.Restart server and the docker daemon is running stable now.
**Lesson learn:**
1.Do not update the kernel version if docker is running on the host.
2.Need to confirm the version match between host kernel and docker.
Ericcheung,
Glad you got it working. And good info to know also. I see from some of my other notes that you need minimally 2.6.24 and above for containers/docker as that’s seems when cgroups was added to the kernel. I also have notes that say it was redesigned in 2013 with changes in 3.15+ kernels. Not sure but if you upgrade to newer docker you might need to upgrade kernel version also.