update Docker deps and install method

This commit is contained in:
2025-09-08 11:05:12 +08:00
committed by Jason Ross
parent cd014b555d
commit ed04051828
+9 -1
View File
@@ -247,7 +247,15 @@ jobs:
run: |
set -euo pipefail
sudo apt-get update
sudo apt-get install -y --no-install-recommends ca-certificates curl gnupg lsb-release docker.io git build-essential
# Remove possible conflicting containerd packages that can block docker.io installation
sudo apt-get remove -y --purge containerd containerd.io || true
sudo apt-get autoremove -y || true
# Try installing docker.io from distro packages
if ! sudo apt-get install -y --no-install-recommends ca-certificates curl gnupg lsb-release docker.io git build-essential; then
echo "apt install docker.io failed; falling back to Docker convenience script"
# Fallback: use Docker's official convenience script
curl -fsSL https://get.docker.com | sudo sh
fi
sudo usermod -aG docker $USER || true
- name: Pull Fedora container image