Commit 5d7ed4d6 authored by Justin Santa Barbara's avatar Justin Santa Barbara

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.
parent 7f3bbe1d
...@@ -190,6 +190,9 @@ else ...@@ -190,6 +190,9 @@ else
fi fi
if [[ -n "${move_docker}" ]]; then 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 # Move docker to e.g. /mnt
# but only if it is a directory, not a symlink left over from a previous run # but only if it is a directory, not a symlink left over from a previous run
if [[ -d /var/lib/docker ]]; then if [[ -d /var/lib/docker ]]; then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment