fix docker update function (#15353)

* fix docker update function

* Update docker.sh
This commit is contained in:
Sam Heinz
2026-06-24 02:20:47 +10:00
committed by GitHub
parent d3623d2da5
commit 97cf2ea294
+5 -3
View File
@@ -30,9 +30,11 @@ function update_script() {
$STD apt upgrade -y $STD apt upgrade -y
msg_ok "Base system updated" msg_ok "Base system updated"
msg_info "Updating Docker Engine" if dpkg-query -W -f='${Status}' docker-ce 2>/dev/null | grep -q "ok installed"; then
$STD apt install --only-upgrade -y docker-ce docker-ce-cli containerd.io docker-compose-plugin docker-buildx-plugin USE_DOCKER_REPO="true" setup_docker
msg_ok "Docker Engine updated" else
setup_docker
fi
if docker ps -a --format '{{.Image}}' | grep -q '^portainer/portainer-ce:latest$'; then if docker ps -a --format '{{.Image}}' | grep -q '^portainer/portainer-ce:latest$'; then
msg_info "Updating Portainer" msg_info "Updating Portainer"