rancher: Path /var/lib/kubelet is mounted on / but it is not a shared mount.
Describe your issue here centos7 , Docker version 1.12.6
[workerPlane] Failed to bring up Worker Plane: Failed to start [kubelet] container on host [192.168.115.102]: Error response from daemon: linux mounts: Path /var/lib/kubelet is mounted on / but it is not a shared mount.
and I have edit /etc/systemd/system/multi-user.target.wants/docker.service and set MountFlags= (no value) , I still have the same issue.
Useful | Info |
---|---|
Versions | Rancher v2.0.0-alpha21 UI: v2.0.25 |
Access | local admin |
Route | global-admin.clusters.index |
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 22 (10 by maintainers)
@nrh387 Quick workaround is running
mount --make-rshared /
on the host, and thendocker start kubelet
should work.Rest of the info is partly here https://github.com/moby/moby/issues/19625 and here https://github.com/kubernetes/kubernetes/issues/61058. As far as I could find it’s because it’s not using systemd, so setting the flags there won’t help.
Can you try setting
MountFlags=shared
?