mirror of https://github.com/docker/docs.git
Merge pull request #21007 from dvdksn/secret-use-consistent-id
build: use consistent secret id in examples
This commit is contained in:
commit
bd15895d80
|
|
@ -44,7 +44,7 @@ equivalent options for [Bake](../bake/reference.md#targetsecret).
|
|||
{{< tab name="CLI" >}}
|
||||
|
||||
```console
|
||||
$ docker build --secret id=mytoken,src=$HOME/.aws/credentials .
|
||||
$ docker build --secret id=aws,src=$HOME/.aws/credentials .
|
||||
```
|
||||
|
||||
{{< /tab >}}
|
||||
|
|
@ -57,7 +57,7 @@ variable "HOME" {
|
|||
|
||||
target "default" {
|
||||
secret = [
|
||||
"id=mytoken,src=${HOME}/.aws/credentials"
|
||||
"id=aws,src=${HOME}/.aws/credentials"
|
||||
]
|
||||
}
|
||||
```
|
||||
|
|
|
|||
Loading…
Reference in New Issue