mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-13 13:14:05 +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:
@@ -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
|
||||
|
Reference in New Issue
Block a user