setup-spoke.sh: use docker.io and docker-compose instead of docker-compose-plugin for apt installs

This commit is contained in:
Justin Oros
2026-04-19 12:37:19 -07:00
parent 07f4601bad
commit 4e1e9282ac

View File

@@ -135,13 +135,21 @@ $PKG_INSTALL vim "$AUTOSSH_PKG" "$OPENSSH_PKG" git
info "Installing Docker..." info "Installing Docker..."
if ! command -v docker >/dev/null 2>&1; then if ! command -v docker >/dev/null 2>&1; then
curl -fsSL https://get.docker.com | bash if [ "$PKG_MANAGER" = "apt" ]; then
$PKG_INSTALL docker.io docker-compose
else
curl -fsSL https://get.docker.com | bash
fi
else else
warn "Docker already installed, skipping." warn "Docker already installed, skipping."
fi fi
if ! docker compose version >/dev/null 2>&1; then if ! docker compose version >/dev/null 2>&1; then
warn "docker compose not available — Docker install script should have included it." if [ "$PKG_MANAGER" = "apt" ]; then
$PKG_INSTALL docker-compose
else
warn "docker compose not available — Docker install script should have included it."
fi
fi fi
info "Adding $SPOKE_USER to docker group..." info "Adding $SPOKE_USER to docker group..."