Update secrets.md

This commit is contained in:
Hang
2024-04-22 11:18:28 +08:00
committed by GitHub
parent ce9325d8a4
commit 08bc47fc2e

View File

@@ -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.