Skip to content

Any way to use --build-context in buildkit:rootless #6309

@xuannguyenhehe

Description

@xuannguyenhehe

I need to use feature --build-context in docker (https://docs.docker.com/build/concepts/context/#use-cases-for-named-contexts)

But I try some ways but no anyone work.

I need mount from second context into Dockerfile.

Example: docker build --build-context proto=../proto
And in Dockerfile I will

COPY --from proto . ../../

Anyone help me pls :(

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions