Fix kubelet container with alternate Docker data paths

Some time ago I think the hardcoded `/var/lib/docker` was required, but kubelet running in a container has been aware of the Docker path since at least as far back as k8s 1.6.

Without this change, you see a large number of errors in the kubelet logs if you installed with a non-default `docker_daemon_graph`
This commit is contained in:
Chad Swenson 2017-11-01 13:25:15 -05:00
parent c0e989b17c
commit 0c824d5ef1

View file

@ -19,7 +19,7 @@
-v /lib/modules:/lib/modules:ro \ -v /lib/modules:/lib/modules:ro \
{% endif -%} {% endif -%}
-v /sys:/sys:ro \ -v /sys:/sys:ro \
-v {{ docker_daemon_graph }}:/var/lib/docker:rw \ -v {{ docker_daemon_graph }}:{{ docker_daemon_graph }}:rw \
-v /var/log:/var/log:rw \ -v /var/log:/var/log:rw \
-v /var/lib/kubelet:/var/lib/kubelet:shared \ -v /var/lib/kubelet:/var/lib/kubelet:shared \
-v /var/lib/cni:/var/lib/cni:shared \ -v /var/lib/cni:/var/lib/cni:shared \