moby / buildkit

concurrent, cache-efficient, and Dockerfile-agnostic builder toolkit
https://github.com/moby/moby/issues/34227
Apache License 2.0
8.11k stars 1.15k forks source link

azblob and --cache-to always returns error #4423

Open jabbera opened 11 months ago

jabbera commented 11 months ago

Using azblob with cache-to always return the following error:

ERROR: failed to solve: failed to configure azblob cache exporter: failed to create container client: failed to get properties of cache container buildkit-cache: ===== INTERNAL ERROR =====
no Host in request URL

Repro:

docker buildx create --name container --driver=docker-container --driver-opt env.BUILDKIT_AZURE_STORAGE_ACCOUNT_URL=<MyAccount>.blob.core.windows.net --driver-opt env.BUILDKIT_AZURE_STORAGE_ACCOUNT_NAME=<MyAccount>
docker buildx build --cache-to type=azblob,name=minimalhuh,secret_access_key=<OMITTED> --builder=container 

output of buildx ls:

container0  unix:///var/run/docker.sock running v0.12.3              linux/amd64, linux/amd64/v2, linux/amd64/v3, linux/amd64/v4, linux/arm64, linux/riscv64, linux/ppc64le, linux/s390x, linux/386, linux/mips64le, linux/mips64, linux/arm/v7, linux/arm/v6
tonistiigi commented 11 months ago

cc @vangarp

jabbera commented 2 months ago

I tried to use this again and am still having this problem.