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

https://docs.docker.com/build/building/secrets/ needs update about allowed target values #21681

Open
1 task done
spacether opened this issue Dec 20, 2024 · 0 comments
Open
1 task done
Labels
status/triage Needs triage

Comments

@spacether
Copy link

Is this a docs issue?

  • My issue is about the documentation content or website

Type of issue

I can't find what I'm looking for

Description

https://docs.docker.com/build/building/secrets/
When one runs a mount relative to user home ~

RUN --mount=type=secret,id=gitlab_auth,target=~/.config/pypoetry/auth.toml \
    ls ~/.config/pypoetry/

the secret file is not mounted.
But when one uses an absolute path:

RUN --mount=type=secret,id=gitlab_auth,target=/root/.config/pypoetry/auth.toml \
    ls ~/.config/pypoetry/

The mount works.
Please specify that the target/dst/destination path value must be absolute on these pages:

  1. https://docs.docker.com/build/building/secrets/
  2. https://docs.docker.com/reference/dockerfile/#run---mounttypesecret

Location

https://docs.docker.com/build/building/secrets/

Suggestion

Please specify that the target/dst/destination path value must be absolute on these pages:

  1. https://docs.docker.com/build/building/secrets/
  2. https://docs.docker.com/reference/dockerfile/#run---mounttypesecret
@spacether spacether added the status/triage Needs triage label Dec 20, 2024
@spacether spacether changed the title https://docs.docker.com/build/building/secrets/ need info update about target values https://docs.docker.com/build/building/secrets/ needs update about allowed target values Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/triage Needs triage
Projects
None yet
Development

No branches or pull requests

1 participant