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

build: clarify how secrets are passed and consumed #20974

Merged
merged 1 commit into from
Sep 23, 2024

Conversation

dvdksn
Copy link
Contributor

@dvdksn dvdksn commented Sep 23, 2024

Description

Closes #20973

The current documentation is somewhat ambiguous in that it specifies that secrets are "mounted by default". It's true that secrets have a default mount path under /run/secrets/<id> if none is specified, but they are not mounted by default unless specified in the Dockerfile.

This PR updates the introduction to the secrets page to put some more emphasis on the fact that using secrets is a two-step process, and requires both passing the secret and mounting it.

Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
Copy link

netlify bot commented Sep 23, 2024

Deploy Preview for docsdocker ready!

Name Link
🔨 Latest commit 2584459
🔍 Latest deploy log https://app.netlify.com/sites/docsdocker/deploys/66f1401dd4fcb300086d53f0
😎 Deploy Preview https://deploy-preview-20974--docsdocker.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@github-actions github-actions bot added the area/build Relates to Dockerfiles or docker build command label Sep 23, 2024
@dvdksn dvdksn requested a review from a team September 23, 2024 10:17
Copy link
Member

@crazy-max crazy-max left a comment

Choose a reason for hiding this comment

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

:shipit:

@dvdksn dvdksn merged commit 93780f6 into docker:main Sep 23, 2024
14 checks passed
@dvdksn dvdksn deleted the clarify-secret-mount-default branch September 23, 2024 12:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/build Relates to Dockerfiles or docker build command status/review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Secrets aren't mounted by default, but there is default mount-path
2 participants