forked from finn/tinyboard
setup-spoke.sh: replace docker.io apt install with Docker official install script to fix docker-compose-plugin availability
This commit is contained in:
@@ -135,21 +135,13 @@ $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
|
||||||
if [ "$PKG_MANAGER" = "apt" ]; then
|
curl -fsSL https://get.docker.com | bash
|
||||||
$PKG_INSTALL docker.io docker-compose-plugin
|
|
||||||
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
|
||||||
if [ "$PKG_MANAGER" = "apt" ]; then
|
warn "docker compose not available — Docker install script should have included it."
|
||||||
$PKG_INSTALL docker-compose-plugin
|
|
||||||
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..."
|
||||||
|
|||||||
Reference in New Issue
Block a user