update Docker deps and install method
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user