From 95f4af989b867f9d9b3ac44bb93c92617c4dfc7b Mon Sep 17 00:00:00 2001 From: Mathieu Tarral Date: Fri, 24 Oct 2025 16:37:39 +0200 Subject: [PATCH] Add sudo -E flag to curl command for proxy support The curl command needs the -E flag with sudo to preserve environment variables, particularly HTTP_PROXY and HTTPS_PROXY settings. Without this flag, users behind corporate proxies cannot download Docker's GPG key. --- content/manuals/engine/install/ubuntu.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/manuals/engine/install/ubuntu.md b/content/manuals/engine/install/ubuntu.md index 5406a0e40a5..db7bbcb474f 100644 --- a/content/manuals/engine/install/ubuntu.md +++ b/content/manuals/engine/install/ubuntu.md @@ -129,7 +129,7 @@ Docker from the repository. sudo apt-get update sudo apt-get install ca-certificates curl sudo install -m 0755 -d /etc/apt/keyrings - sudo curl -fsSL {{% param "download-url-base" %}}/gpg -o /etc/apt/keyrings/docker.asc + sudo -E curl -fsSL {{% param "download-url-base" %}}/gpg -o /etc/apt/keyrings/docker.asc sudo chmod a+r /etc/apt/keyrings/docker.asc # Add the repository to Apt sources: