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