From 08bc47fc2e0f8f33e4bf7ec647c8a605316e1d16 Mon Sep 17 00:00:00 2001 From: Hang Date: Mon, 22 Apr 2024 11:18:28 +0800 Subject: [PATCH] Update secrets.md --- content/build/building/secrets.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/build/building/secrets.md b/content/build/building/secrets.md index b8147b8972c3..3813352ab466 100644 --- a/content/build/building/secrets.md +++ b/content/build/building/secrets.md @@ -68,7 +68,7 @@ as a file in the build container at `/run/secrets/kube`. $ docker build --secret id=kube,env=KUBECONFIG . ``` -When you secrets from environment variables, you can omit the `id` parameter +When you secrets from environment variables, you can omit the `env` parameter to bind the secret to a file with the same name as the variable. In the following example, the value of the `API_TOKEN` variable is mounted to `/run/secrets/API_TOKEN` in the build container.