Skip to content

Can not deploy (lk agent create) on macos #725

@arsen

Description

@arsen

When i run lp agent create and select the region i get the following error

lk agent create
Using default project [test-project]
Creating new agent
Using secrets file [.env.local]
Detected project type [python.uv]
Using existing Dockerfile
Using existing .dockerignore
[+] Building 0.2s (2/2) FINISHED                                                                                                                                                                                              
 => [internal] load remote build context                                                                                                                                                                                 0.1s
 => ERROR copy /context /                                                                                                                                                                                                0.0s
------
 > copy /context /:
------
unable to create agent: build failed for iad.ocir.io/axyci3pr8vxm/production-cloud-agents:p-60i1lyxcm6q-ca-qmenimdhdh2f-v20251107003434: failed to solve: failed to read dockerfile: failed to Lchown "/Dockerfile" for UID 1101729729, GID 1241778005: lchown /Dockerfile: invalid argument

I'm on CLI version
lk version 2.12.8

I am using the agent-starter-python project

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