pre-build and dockerfile doesn't work nicely with buildx/docker-container driver sometimes
Emilgardis opened this issue · 1 comments
Emilgardis commented
after using a dockerfile
and pre-build
Following error was experienced in GH CI
#2 [internal] load metadata for localhost/cross-rs/cross-custom-rundler:aarch64-unknown-linux-gnu-c9fbe
#2 ERROR: failed to do request: Head "http://localhost/v2/cross-rs/cross-custom-app/manifests/aarch64-unknown-linux-gnu-c9fbe": dial tcp 127.0.0.1:80: connect: connection refused
I think this is related to
https://docs.docker.com/engine/reference/commandline/buildx_build/#output
Buildx with docker driver currently only supports local, tarball exporter and image exporter. docker-container driver supports all the exporters.
however, the build was using the docker-container driver. It might be that buildx doesn't correctly check images, will have to try to reproduce.
Originally posted by @0xfourzerofour in #1358 (comment)
Emilgardis commented
a reproducing environment should be simple
- name: Set up Docker builder
run: |
docker run --privileged --rm tonistiigi/binfmt --install arm64,amd64
docker buildx create --use --name cross-builder
- name: Build and push image
run: |
cargo install cross --git https://github.com/cross-rs/cross
cross build --target x86_64-unknown-linux-gnu