From 28bc9538e6d9755f855f8d300cafd0eb684a019e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Gronowski?= Date: Wed, 1 Apr 2026 14:17:13 +0200 Subject: [PATCH] install.sh: Add a comment with manual instructions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The comment at the end of the install script makes it convenient to get the installation instructions with just `curl https://get.docker.com`. Signed-off-by: Paweł Gronowski --- install.sh | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/install.sh b/install.sh index 699e76c6..737e4b11 100755 --- a/install.sh +++ b/install.sh @@ -762,3 +762,47 @@ do_install() { # wrapped up in a function so that we have some protection against only getting # half the file during "curl | sh" do_install + +: <<'MANUAL_INSTALL_DOCS' +Manual setup: https://docs.docker.com/engine/install/ + +# Fedora / RHEL + +sudo dnf -y install dnf-plugins-core + +# dnf5 +sudo dnf5 config-manager addrepo --from-repofile https://download.docker.com/linux/$(. /etc/os-release && echo $ID)/docker-ce.repo +# dnf older than 5 +sudo dnf config-manager --add-repo https://download.docker.com/linux/$(. /etc/os-release && echo $ID)/docker-ce.repo + + +sudo dnf install docker-ce +sudo systemctl enable --now docker + +# ====== + +# Ubuntu / Debian + +sudo apt update +sudo apt install -y ca-certificates curl +sudo install -m 0755 -d /etc/apt/keyrings +sudo curl -fsSL https://download.docker.com/linux/$(. /etc/os-release && echo "$ID")/gpg -o /etc/apt/keyrings/docker.asc +sudo chmod a+r /etc/apt/keyrings/docker.asc +sudo tee /etc/apt/sources.list.d/docker.sources <