mirror of https://github.com/k3s-io/k3s
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
parent
7f3bbe1dfe
commit
5d7ed4d6e7
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue