Skip to content

Enable ssh option as build parameter for buildkit #7025

Closed
@bert2002

Description

@bert2002

Is your feature request related to a problem? Please describe.
When building a container we need access to other Resources like ssh and dont want to expose a private key in the container.

Describe the solution you'd like
Support of --ssh in the build process that already works in buildkit.

Additional context
I tried 1.25.0-rc4, but it does not support --ssh option. Tried the same as in bug 6440:

export COMPOSE_DOCKER_CLI_BUILD=1
export DOCKER_BUILDKIT=1
docker-compose build --ssh default my_image

This would be a major security improvement and save us so much pain.

Thanks,
bert

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