Skip to content

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

Closed
@spacether

Description

@spacether

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions