From acb53e7f815f88ff0bf3f8856eb92494d31f0be9 Mon Sep 17 00:00:00 2001 From: David Gageot Date: Mon, 16 Mar 2026 17:37:06 +0100 Subject: [PATCH] docs: fix binary download URLs to match release artifact naming The install script used raw uname -s and uname -m values (e.g. Linux-x86_64), but release binaries use Go's GOOS-GOARCH convention (e.g. linux-amd64). Map uname output to the correct lowercase OS and architecture names. Fixes #2117 Assisted-By: docker-agent --- docs/getting-started/installation/index.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/getting-started/installation/index.md b/docs/getting-started/installation/index.md index 10bed054c..3d99e8e84 100644 --- a/docs/getting-started/installation/index.md +++ b/docs/getting-started/installation/index.md @@ -49,8 +49,10 @@ Download [prebuilt binary releases](https://github.com/docker/docker-agent/relea ### macOS / Linux ```bash -# Download the latest release (adjust URL for your platform) -curl -L https://github.com/docker/docker-agent/releases/latest/download/docker-agent-$(uname -s)-$(uname -m) -o docker-agent +# Download the latest release +OS=$(uname -s | tr '[:upper:]' '[:lower:]') +ARCH=$(uname -m); case "$ARCH" in x86_64) ARCH=amd64;; aarch64) ARCH=arm64;; esac +curl -L "https://github.com/docker/docker-agent/releases/latest/download/docker-agent-${OS}-${ARCH}" -o docker-agent chmod +x docker-agent sudo mv docker-agent /usr/local/bin/ docker-agent version @@ -63,7 +65,7 @@ docker agent version ### Windows -Download `docker-agent-Windows-amd64.exe` from the [releases page](https://github.com/docker/docker-agent/releases), rename it to `docker-agent.exe` and add it to your PATH. Alternatively you can move it to `~/.docker/cli-plugins` +Download `docker-agent-windows-amd64.exe` from the [releases page](https://github.com/docker/docker-agent/releases), rename it to `docker-agent.exe` and add it to your PATH. Alternatively you can move it to `~/.docker/cli-plugins` ## Build from Source