Update docker to 29.1.5
This commit is contained in:
@@ -106,10 +106,11 @@ fi
|
||||
|
||||
# https://docs.docker.com/engine/installation/linux/ubuntulinux/
|
||||
# https://download.docker.com/linux/ubuntu/dists/noble/pool/stable/amd64/
|
||||
# this is the highest on Ubuntu 20.04 focal
|
||||
readonly docker_version="28.1.1"
|
||||
readonly docker_deb_version="5:${docker_version}-1~ubuntu.${ubuntu_version}~${ubuntu_codename}"
|
||||
readonly containerd_version="1.7.27"
|
||||
# this is the highest on Ubuntu 22.04 focal
|
||||
readonly docker_version="29.1.5"
|
||||
readonly distro_suffix="ubuntu.${ubuntu_version}~${ubuntu_codename}"
|
||||
readonly docker_deb_version="5:${docker_version}-1~${distro_suffix}"
|
||||
readonly containerd_version="2.2.1"
|
||||
if ! dpkg -s docker-ce >/dev/null 2>&1 || \
|
||||
[[ "$(dpkg-query --show --showformat='${Version}' docker-ce 2>/dev/null)" != "${docker_deb_version}" ]]; then
|
||||
log "installing/updating docker"
|
||||
@@ -119,9 +120,9 @@ if ! dpkg -s docker-ce >/dev/null 2>&1 || \
|
||||
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 (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}-1_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}-1~ubuntu.${ubuntu_version}~${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}-1~ubuntu.${ubuntu_version}~${ubuntu_codename}_amd64.deb" -o /tmp/docker.deb
|
||||
$curl -sL "https://download.docker.com/linux/ubuntu/dists/${ubuntu_codename}/pool/stable/amd64/containerd.io_${containerd_version}-1~${distro_suffix}_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}-1~${distro_suffix}_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}-1~${distro_suffix}_amd64.deb" -o /tmp/docker.deb
|
||||
|
||||
log "installing docker"
|
||||
prepare_apt_once
|
||||
|
||||
Reference in New Issue
Block a user