Closed
Description
Description
Buildx introduced a remote driver, where you can just connect to an existing buildkit daemon.
Looks like we can just bump buildx and add a _
import to the remote
package here
I tried doing this myself but ran into some issues since buildx needs some unreleased feature from buildkit, and docker/cli and docker/docker both needed to get bumped too, and then there were compilation problems 😥 . Left a branch pushed with a WIP here.
Steps to reproduce the issue:
- Create a buildkit server (I followed this guide)
- Wire it up to docker-buildx (
docker buildx create --name remote --driver=remote --driver-opt key=$PWD.certs/client/key.pem --driver-opt cert=$PWD/.certs/client/cert.pem --driver-opt cacert=$PWD/.certs/client/ca.pem tcp://127.0.0.1:1234
if you're following that guide) docker buildx use remote
- Try to use
docker compose
with buildkit/buildx
Describe the results you received:
$ docker-compose run app py.test
failed to find buildx driver "remote"
Describe the results you expected:
It builds!
Output of docker compose version
:
Docker Compose version 2.11.2
Output of docker info
:
Client:
Context: colima
Debug Mode: false
Plugins:
buildx: Docker Buildx (Docker Inc., v0.9.1)
compose: Docker Compose (Docker Inc., 2.11.2)
Server:
Containers: 15
Running: 3
Paused: 0
Stopped: 12
Images: 18
Server Version: 20.10.18
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Native Overlay Diff: true
userxattr: false
Logging Driver: json-file
Cgroup Driver: cgroupfs
Cgroup Version: 1
Plugins:
Volume: local
Network: bridge host ipvlan macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
Swarm: inactive
Runtimes: io.containerd.runc.v2 io.containerd.runtime.v1.linux runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 9cd3357b7fd7218e4aec3eae239db1f68a5a6ec6
runc version: 5fd4c4d144137e991c4acebb2146ab1483a97925
init version:
Security Options:
seccomp
Profile: default
Kernel Version: 5.15.68-0-virt
Operating System: Alpine Linux v3.16
OSType: linux
Architecture: aarch64
CPUs: 8
Total Memory: 3.828GiB
Name: colima
ID: L6MV:2NHB:DMC5:7ABF:UAJK:HDHG:WXSX:GSK4:D2MH:NXMP:XATY:KXOH
Docker Root Dir: /var/lib/docker
Debug Mode: false
Username: benmoss
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
host.docker.internal:5000
127.0.0.0/8
Live Restore Enabled: false
Additional environment details:
$ docker buildx version
github.com/docker/buildx v0.9.1 ed00243a0ce2a0aee75311b06e32d33b44729689
Metadata
Metadata
Assignees
Labels
No labels