Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: secret usage examples #943

Merged
merged 1 commit into from
Feb 11, 2022
Merged

Conversation

crazy-max
Copy link
Member

@crazy-max crazy-max commented Feb 8, 2022

fixes #809
fixes #927

cc @basicdays @thaJeztah

Signed-off-by: CrazyMax crazy-max@users.noreply.github.com

@basicdays
Copy link

Looks amazing, thanks for the clarification!

### <a name="secret"></a> Secret to expose to the build (`--secret`)

```
--secret=[id=ID[,KEY=VALUE]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Technically the keys are id, src/source, env and type. If type is unset then it is detected. If source/env is unset then id itself is used. The examples are ok but I think we should also explain the format fully.

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
@tonistiigi tonistiigi merged commit e60f0f2 into docker:master Feb 11, 2022
@crazy-max crazy-max deleted the secret-examples branch February 11, 2022 01:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Document build secrets passed via environment variables Not able to export AWS credentials inside Dockerfile
3 participants