mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-05 18:24:07 +00:00
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.
This commit is contained in:
parent
7f3bbe1dfe
commit
5d7ed4d6e7
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user