Skip to content

Commit b8146a3

Browse files
committed
Fix doco regarding ADD HTTP_AUTH.
COPY doesn't support remote files.
1 parent 4b79cac commit b8146a3

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

content/manuals/build/building/secrets.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -265,12 +265,12 @@ $ docker build \
265265
https://github.com/example/todo-app.git
266266
```
267267

268-
## HTTP authentication for `COPY` and `ADD`
268+
## HTTP authentication for `ADD`
269269

270-
To use secrets in `COPY` or `ADD` commands, you can create
271-
`HTTP_AUTH_TOKEN_<host>` or `HTTP_AUTH_HEADER_<host>` secrets for use when
272-
accessing the specified host. For example `HTTP_AUTH_TOKEN_127.0.0.1=token` will
273-
make requests to `127.0.0.1` add a header `Authorization: Bearer token`.
270+
To use secrets in `ADD` commands you can create `HTTP_AUTH_TOKEN_<host>` or
271+
`HTTP_AUTH_HEADER_<host>` secrets for use when accessing the specified host. For
272+
example `HTTP_AUTH_TOKEN_127.0.0.1=token` will make requests to `127.0.0.1` add
273+
a header `Authorization: Bearer token`.
274274

275275
These variables follow the same convention as the [Git HTTP authentication
276276
scheme](#http-authentication-scheme) handling.

0 commit comments

Comments
 (0)