mirror of https://github.com/docker/docs.git
Merge pull request #20347 from dvdksn/remote-ctx-example-cleanup
build: clean up remote auth example with secrets
This commit is contained in:
commit
730710d499
|
@ -9,7 +9,7 @@ A build secret is any piece of sensitive information, such as a password or API
|
|||
token, consumed as part of your application's build process.
|
||||
|
||||
Build arguments and environment variables are inappropriate for passing secrets
|
||||
to your build, because they persist in the final image. Instead, should use
|
||||
to your build, because they persist in the final image. Instead, you should use
|
||||
secret mounts or SSH mounts, which expose secrets to your builds securely.
|
||||
|
||||
## Secret mounts
|
||||
|
@ -135,9 +135,9 @@ fails because the builder isn't authorized to pull the repository:
|
|||
```console
|
||||
$ docker build https://gitlab.com/example/todo-app.git
|
||||
[+] Building 0.4s (1/1) FINISHED
|
||||
=> ERROR [internal] load git source https://gitlab.com/dvdk/todo-app.git
|
||||
=> ERROR [internal] load git source https://gitlab.com/example/todo-app.git
|
||||
------
|
||||
> [internal] load git source https://gitlab.com/dvdk/todo-app.git:
|
||||
> [internal] load git source https://gitlab.com/example/todo-app.git:
|
||||
0.313 fatal: could not read Username for 'https://gitlab.com': terminal prompts disabled
|
||||
------
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue