From ce00165e41437d13d64f081d73dc86b0e182aa2f Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Thu, 24 Nov 2022 11:26:03 +0100 Subject: [PATCH] Update containterd this possible fixes stuck containers - https://github.com/containerd/containerd/issues/6772 --- scripts/installer.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/installer.sh b/scripts/installer.sh index f47ad8bfb..76be832b3 100755 --- a/scripts/installer.sh +++ b/scripts/installer.sh @@ -73,6 +73,7 @@ log "Updating from $(cat $box_src_dir/VERSION 2>/dev/null) to $(cat $box_src_tmp # https://docs.docker.com/engine/installation/linux/ubuntulinux/ readonly docker_version=20.10.21 +readonly containerd_version=1.6.10-1 if ! which docker 2>/dev/null || [[ $(docker version --format {{.Client.Version}}) != "${docker_version}" ]]; then log "installing/updating docker" @@ -80,8 +81,8 @@ if ! which docker 2>/dev/null || [[ $(docker version --format {{.Client.Version} mkdir -p /etc/systemd/system/docker.service.d echo -e "[Service]\nExecStart=\nExecStart=/usr/bin/dockerd -H fd:// --log-driver=journald --exec-opt native.cgroupdriver=cgroupfs --storage-driver=overlay2 --experimental --ip6tables" > /etc/systemd/system/docker.service.d/cloudron.conf - # there are 3 packages for docker - containerd, CLI and the daemon - $curl -sL "https://download.docker.com/linux/ubuntu/dists/${ubuntu_codename}/pool/stable/amd64/containerd.io_1.5.11-1_amd64.deb" -o /tmp/containerd.deb + # there are 3 packages for docker - containerd, CLI and the daemon (https://download.docker.com/linux/ubuntu/dists/jammy/pool/stable/amd64/) + $curl -sL "https://download.docker.com/linux/ubuntu/dists/${ubuntu_codename}/pool/stable/amd64/containerd.io_${containerd_version}_amd64.deb" -o /tmp/containerd.deb $curl -sL "https://download.docker.com/linux/ubuntu/dists/${ubuntu_codename}/pool/stable/amd64/docker-ce-cli_${docker_version}~3-0~ubuntu-${ubuntu_codename}_amd64.deb" -o /tmp/docker-ce-cli.deb $curl -sL "https://download.docker.com/linux/ubuntu/dists/${ubuntu_codename}/pool/stable/amd64/docker-ce_${docker_version}~3-0~ubuntu-${ubuntu_codename}_amd64.deb" -o /tmp/docker.deb