Closed
Description
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:
- https://docs.docker.com/build/building/secrets/
- 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: