Update cAdvisor with moved docker root on AWS
We set up a symlink now, and we also pass docker_root into the kubelet. The symlink is probably sufficient, but doing both feels safer.
This commit is contained in:
@@ -60,7 +60,12 @@ else
|
||||
mount -t btrfs ${block_devices[0]} /mnt
|
||||
|
||||
# Move docker to /mnt if we have it
|
||||
if [[ -d /var/lib/docker ]]; then
|
||||
mv /var/lib/docker /mnt/
|
||||
fi
|
||||
mkdir -p /mnt/docker
|
||||
ln -s /mnt/docker /var/lib/docker
|
||||
DOCKER_ROOT="/mnt/docker"
|
||||
DOCKER_OPTS="${DOCKER_OPTS} -g /mnt/docker"
|
||||
fi
|
||||
|
||||
|
Reference in New Issue
Block a user