Skip to content

why does buildkitd need root privilege? #252

@lgarithm

Description

@lgarithm

I launched a buildkitd with

buildkitd --debug --root tmp --addr tcp://0.0.0.0:9999

and then run

BUILDKIT_HOST=tcp://0.0.0.0:9999 buildctl build --frontend=dockerfile.v0 --local context=. --local dockerfile=.

it failed with

error: failed to solve: rpc error: code = PermissionDenied desc = operation not permitted

and buildkitd prints the following log

DEBU[0001] saved pepcogt875omp04yuoxemwku9 as local.sharedKey:context:.dockerignore: 
DEBU[0001] saved b1ak00yut64moftomnakdvqrd as local.sharedKey:dockerfile:Dockerfile: 
ERRO[0002] /moby.buildkit.v1.Control/Solve returned error: operation not permitted 
DEBU[0002] session finished: <nil>

It would be OK if I launched a buildkitd with sudo.
Can the READMD.md doc mention why does it still need root privilege?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions