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`
pull/1917/head
Chad Swenson 2017-11-01 13:25:15 -05:00
parent c0e989b17c
commit 0c824d5ef1
1 changed files with 1 additions and 1 deletions

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 \