containerd integration: Passing a build context via tarball to the /build
endpoint is broken
#47717
Labels
area/api
area/builder/buildkit
Issues affecting buildkit
area/builder
containerd-integration
Issues and PRs related to containerd integration
kind/bug
Bugs are bugs. The cause may or may not be known at triage time so debugging may be needed.
Description
Building via the
/build
endpoint withVersion=BuilderBuildkit
fails with:When passing a build context via a tar without a build session.
It works with graphdrivers, because the
mobyworker
makes use of the passedhttp.RoundTripper
:moby/builder/builder-next/controller.go
Line 355 in 8d5d655
moby/builder/builder-next/controller.go
Line 193 in 8d5d655
which is used to respond to a fake url echoing the passed build context:
moby/builder/builder-next/builder.go
Line 294 in 8d5d655
With the containerd integration, the ContainerdWorker doesn't use this RoundTripper so it isn't able to access the build context.
Reproduce
context.tar.zip
(zipping a tar, because github doesn't allow uploading tars 🙈)
Expected behavior
No response
docker version
Client: Cloud integration: v1.0.35+desktop.13 Version: 26.0.0 API version: 1.45 Go version: go1.21.8 Git commit: 2ae903e Built: Wed Mar 20 15:14:46 2024 OS/Arch: darwin/arm64 Context: desktop-linux Server: Docker Desktop 4.30.0 (145546) Engine: Version: 26.0.0 API version: 1.45 (minimum version 1.24) Go version: go1.21.8 Git commit: 8b79278 Built: Wed Mar 20 15:18:02 2024 OS/Arch: linux/arm64 Experimental: false containerd: Version: 1.6.28 GitCommit: ae07eda36dd25f8a1b98dfbf587313b99c0190bb runc: Version: 1.1.12 GitCommit: v1.1.12-0-g51d5e94 docker-init: Version: 0.19.0 GitCommit: de40ad0
docker info
Additional Info
No response
The text was updated successfully, but these errors were encountered: