From a72c038435b7836246e8d8ae64db7b1a11b9bd7a Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Mon, 9 Sep 2024 18:42:08 +0200 Subject: [PATCH] cloudron-support: also need to be remove any corrupt containerd --- scripts/cloudron-support | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/cloudron-support b/scripts/cloudron-support index 3065d3514..05ee67f79 100755 --- a/scripts/cloudron-support +++ b/scripts/cloudron-support @@ -602,6 +602,7 @@ function ask_reboot() { function recreate_docker() { readonly logfile="/home/yellowtent/platformdata/logs/box.log" readonly stagefile="/home/yellowtent/platformdata/recreate-docker-stage" + readonly containerd_root="/var/lib/containerd" if ! docker_root=$(docker info -f '{{ .DockerRootDir }}' 2>/dev/null); then warning "Unable to detect docker root. Assuming /var/lib/docker" @@ -627,7 +628,7 @@ function recreate_docker() { if grep -q "clearing_storage" "${stagefile}"; then info "Clearing docker storage at ${docker_root}" - if ! rm -rf "${docker_root}/"*; then + if ! rm -rf "${docker_root}/"* "${containerd_root}/"*; then echo -e "\nThe server has to be rebooted to clear the docker storage. After reboot," echo -e "run 'cloudron-support --recreate-docker' again.\n" ask_reboot