Skip to content

could not connect to unix:///run/user/1000/buildkit/buildkitd.sock #6622

@Tusenka

Description

@Tusenka

Contributing guidelines and issue reporting guide

Well-formed report checklist

  • I have found a bug that the documentation does not mention anything about my problem
  • I have found a bug that there are no open or closed issues that are related to my problem
  • I have provided version/information about my environment and done my best to provide a reproducer

Description of bug

Bug description

Error when running the exactle version after v0.28.0 the pipe drops with the error.

could not connect to unix:///run/user/1000/buildkit/buildkitd.sock

It works fine on the version v0.28.0.

Reproduction

Run gitlab:

build_image:
  stage: build
  image: moby/buildkit:v0.28.0-rootless
  tags: [kubernetes, yandex-cloud]
  variables:
    BUILDKITD_FLAGS: --oci-worker-no-process-sandbox
    CACHE_IMAGE: $CI_REGISTRY_IMAGE:cache
  before_script:
    - mkdir -p ~/.docker
    - echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > ~/.docker/config.json
  script:
    - >
      buildctl-daemonless.sh build
      --frontend dockerfile.v0
      --local context=.
      --local dockerfile=.
      --opt platform=linux/amd64
      --export-cache type=registry,ref=$CACHE_IMAGE
      --import-cache type=registry,ref=$CACHE_IMAGE
      --output type=image,name=$CI_REGISTRY_IMAGE:$CI_COMMIT_SHA,push=true

Version information

v0.28.1

Terminal_output

$ buildctl-daemonless.sh build --frontend dockerfile.v0 --local context=. --local dockerfile=. --opt platform=linux/amd64 --export-cache type=registry,ref=$CACHE_IMAGE --import-cache type=registry,ref=$CACHE_IMAGE --output type=image,name=$CI_REGISTRY_IMAGE:$CI_COMMIT_SHA,push=true
could not connect to unix:///run/user/1000/buildkit/buildkitd.sock after 10 trials

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions