AWS kube-up: Stop docker before moving /mnt/docker

On Jessie, we now preinstall Docker.  Before moving /mnt/docker, make
sure we stop the docker service.
pull/6/head
Justin Santa Barbara 2016-02-23 23:44:00 -05:00
parent 7f3bbe1dfe
commit 5d7ed4d6e7
1 changed files with 3 additions and 0 deletions

View File

@ -190,6 +190,9 @@ else
fi
if [[ -n "${move_docker}" ]]; then
# Stop docker if it is running, so we can move its files
systemctl stop docker || true
# Move docker to e.g. /mnt
# but only if it is a directory, not a symlink left over from a previous run
if [[ -d /var/lib/docker ]]; then