UPDATE 2: Resolved. This was a misunderstanding on my part. I didn't realize Docker Engine 20.10.22 from Dec 2022 still used BuildKit v0.8.4 from Apr 2021. buildx v0.9.1 was using BuildKit v0.11.0 instead where --link is actually supported not silently ignored for backwards compatibility.
UPDATE: See next message for a minimal reproduction. Not a cache issue, seems specific to buildx when using the docker-container driver.
I also somehow missed an existing issue with the same error message.
Original report (invalid)
I am assuming this has something to do with caching we have used in CI (via the Github Action docker-build-push), as a local build does not fail like this.
Local
This correctly uses existing layer cache up until the change for COPY --link adding --chown=clamav.
Command run:
DOCKER_BUILDKIT=1 docker build \
--tag 'mailserver-testing:ci' \
--build-arg VCS_VERSION=$(shell git rev-parse --short HEAD) \
--build-arg VCS_REVISION=$(shell cat VERSION) \
.
Terminal output
[+] Building 45.8s (60/60) FINISHED
=> [internal] load build definition from Dockerfile 0.1s
=> => transferring dockerfile: 12.09kB 0.0s
=> [internal] load .dockerignore 0.2s
=> => transferring context: 34B 0.0s
=> resolve image config for docker.io/docker/dockerfile:1 1.7s
=> CACHED docker-image://docker.io/docker/dockerfile:1@sha256:9ba7531bd80fb0a858632727cf7a112fbfd19b17e94c4e84ced81 0.0s
=> [internal] load .dockerignore 0.0s
=> [internal] load build definition from Dockerfile 0.0s
=> [internal] load metadata for docker.io/clamav/clamav:latest 0.0s
=> [internal] load metadata for docker.io/library/debian:11-slim 0.0s
=> [stage-base 1/49] FROM docker.io/library/debian:11-slim 0.0s
=> [internal] load build context 0.1s
=> => transferring context: 25.72kB 0.0s
=> CACHED FROM docker.io/clamav/clamav:latest 0.0s
=> CACHED [stage-base 2/49] COPY target/bin/sedfile /usr/local/bin/sedfile 0.0s
=> CACHED [stage-base 3/49] RUN chmod +x /usr/local/bin/sedfile 0.0s
=> CACHED [stage-base 4/49] COPY target/scripts/build/* /build/ 0.0s
=> CACHED [stage-base 5/49] COPY target/scripts/helpers/log.sh /usr/local/bin/helpers/log.sh 0.0s
=> CACHED [stage-base 6/49] RUN /bin/bash /build/packages.sh 0.0s
=> CACHED [stage-base 7/49] RUN <<EOF (echo '0 */6 * * * clamav /usr/bin/freshclam --quiet' >/etc/cron.d/clamav-fr 0.0s
=> [stage-base 8/49] COPY --chown=clamav --link --from=docker.io/clamav/clamav:latest /var/lib/clamav /var/lib/cla 0.3s
=> [stage-base 9/49] COPY target/dovecot/auth-passwdfile.inc target/dovecot/auth-master.inc target/dovecot/??-*.co 0.3s
=> [stage-base 10/49] COPY target/dovecot/sieve/ /etc/dovecot/sieve/ 0.3s
=> [stage-base 11/49] COPY target/dovecot/dovecot-purge.cron /etc/cron.d/dovecot-purge.disabled 0.3s
=> [stage-base 12/49] RUN chmod 0 /etc/cron.d/dovecot-purge.disabled 0.7s
=> [stage-base 13/49] WORKDIR /usr/share/dovecot 0.3s
=> [stage-base 14/49] RUN <<EOF (sedfile -i -e 's/include_try \/usr\/share\/dovecot\/protocols\.d/include_try \/etc 0.8s
=> [stage-base 15/49] COPY target/rspamd/local.d/ /etc/rspamd/local.d/ 0.4s
=> [stage-base 16/49] COPY target/dovecot/dovecot-ldap.conf.ext /etc/dovecot 0.3s
=> [stage-base 17/49] COPY target/postfix/ldap-users.cf target/postfix/ldap-groups.cf target/postfix/ldap-ali 0.4s
=> [stage-base 18/49] RUN <<EOF (sedfile -i -r 's/^(CRON)=0/\1=1/g' /etc/default/spamassassin...) 1.7s
=> [stage-base 19/49] COPY target/postsrsd/postsrsd /etc/default/postsrsd 0.7s
=> [stage-base 20/49] COPY target/postgrey/postgrey /etc/default/postgrey 0.3s
=> [stage-base 21/49] COPY target/postgrey/postgrey.init /etc/init.d/postgrey 0.3s
=> [stage-base 22/49] RUN <<EOF (chmod 755 /etc/init.d/postgrey...) 1.6s
=> [stage-base 23/49] COPY target/amavis/conf.d/* /etc/amavis/conf.d/ 0.4s
=> [stage-base 24/49] RUN <<EOF (sedfile -i -r 's/#(@| \\%)bypass/\1bypass/g' /etc/amavis/conf.d/15-content_filte 1.3s
=> [stage-base 25/49] RUN <<EOF (for _ in {1..10}; do...) 8.6s
=> [stage-base 26/49] COPY target/fail2ban/jail.local /etc/fail2ban/jail.local 0.7s
=> [stage-base 27/49] COPY target/fail2ban/fail2ban.d/fixes.local /etc/fail2ban/fail2ban.d/fixes.local 0.3s
=> [stage-base 28/49] RUN <<EOF (ln -s /var/log/mail/mail.log /var/log/mail.log...) 0.7s
=> [stage-base 29/49] COPY target/opendkim/opendkim.conf /etc/opendkim.conf 0.4s
=> [stage-base 30/49] COPY target/opendkim/default-opendkim /etc/default/opendkim 0.3s
=> [stage-base 31/49] COPY target/opendmarc/opendmarc.conf /etc/opendmarc.conf 0.3s
=> [stage-base 32/49] COPY target/opendmarc/default-opendmarc /etc/default/opendmarc 0.3s
=> [stage-base 33/49] COPY target/opendmarc/ignore.hosts /etc/opendmarc/ignore.hosts 0.3s
=> [stage-base 34/49] RUN echo 'Reason_Message = Message {rejectdefer} due to: {spf}.' >>/etc/postfix-policyd-spf-p 0.7s
=> [stage-base 35/49] COPY target/fetchmail/fetchmailrc /etc/fetchmailrc_general 0.4s
=> [stage-base 36/49] COPY target/postfix/main.cf target/postfix/master.cf /etc/postfix/ 0.3s
=> [stage-base 37/49] COPY target/shared/ffdhe4096.pem /etc/postfix/dhparams.pem 0.7s
=> [stage-base 38/49] COPY target/shared/ffdhe4096.pem /etc/dovecot/dh.pem 0.2s
=> [stage-base 39/49] COPY target/postfix/header_checks.pcre target/postfix/sender_header_filter.pcre target/ 0.4s
=> [stage-base 40/49] RUN <<EOF (: >/etc/aliases...) 0.8s
=> [stage-base 41/49] RUN <<EOF (sedfile -i -r "/^#?compress/c\compress\ncopytruncate" /etc/logrotate.conf...) 1.2s
=> [stage-base 42/49] COPY target/logwatch/maillog.conf /etc/logwatch/conf/logfiles/maillog.conf 0.4s
=> [stage-base 43/49] COPY target/supervisor/supervisord.conf /etc/supervisor/supervisord.conf 0.3s
=> [stage-base 44/49] COPY target/supervisor/conf.d/* /etc/supervisor/conf.d/ 0.3s
=> [stage-base 45/49] RUN <<EOF (rm -rf /usr/share/locale/*...) 0.9s
=> [stage-base 46/49] COPY VERSION / 0.7s
=> [stage-base 47/49] COPY target/bin/* target/scripts/*.sh target/scripts/startup/*.sh target/scripts/wrap 0.5s
=> [stage-base 48/49] RUN chmod +x /usr/local/bin/* 0.7s
=> [stage-base 49/49] COPY target/scripts/helpers /usr/local/bin/helpers 0.5s
=> exporting to image 11.3s
=> => exporting layers 11.2s
=> => writing image sha256:081f84dd66254a3515b331a5f0b24497fa3c67f1a01056119275f502d58fc344 0.0s
=> => naming to docker.io/library/mailserver-testing:ci
CI
This is what the command in CI looks like:
/usr/bin/docker buildx build \
--cache-from type=local,src=/tmp/.buildx-cache \
--cache-to type=local,dest=/tmp/.buildx-cache-new,mode=max \
--iidfile /tmp/docker-build-push-r1dOWM/iidfile \
--output type=cacheonly \
--platform linux/amd64 \
--metadata-file /tmp/docker-build-push-r1dOWM/metadata-file \
.
CI logs
The layer cache seems to be correctly used here too. I'm not sure why it fails other than the caching strategy likely being different? The clamav user does exist by this point (created in an earlier RUN to a shell script that installs a package that adds the user).
Fails with the following error:
Error: buildx failed with: ERROR: failed to solve: invalid user index: -1
Full build log
/usr/bin/docker buildx build --cache-from type=local,src=/tmp/.buildx-cache --cache-to type=local,dest=/tmp/.buildx-cache-new,mode=max --iidfile /tmp/docker-build-push-r1dOWM/iidfile --output type=cacheonly --platform linux/amd64 --metadata-file /tmp/docker-build-push-r1dOWM/metadata-file .
#1 [internal] load .dockerignore
#1 transferring context: 59B done
#1 DONE 0.0s
#2 [internal] load build definition from Dockerfile
#2 transferring dockerfile: 12.09kB done
#2 DONE 0.0s
#3 resolve image config for docker.io/docker/dockerfile:1
#3 ...
#4 [auth] docker/dockerfile:pull token for registry-1.docker.io
#4 DONE 0.0s
#3 resolve image config for docker.io/docker/dockerfile:1
#3 DONE 0.5s
#5 docker-image://docker.io/docker/dockerfile:1@sha256:9ba7531bd80fb0a858632727cf7a112fbfd19b17e94c4e84ced81e24ef1a0dbc
#5 resolve docker.io/docker/dockerfile:1@sha256:9ba7531bd80fb0a858632727cf7a112fbfd19b17e94c4e84ced81e24ef1a0dbc 0.0s done
#5 sha256:1328b32c40fca9bcf9d70d8eccb72eb873d1[124](https://github.com/docker-mailserver/docker-mailserver/actions/runs/3945342546/jobs/6752151872#step:7:128)d72dadce04db8badbe7b08546 9.94MB / 9.94MB 0.1s done
#5 extracting sha256:1328b32c40fca9bcf9d70d8eccb72eb873d1124d72dadce04db8badbe7b08546
#5 extracting sha256:1328b32c40fca9bcf9d70d8eccb72eb873d1124d72dadce04db8badbe7b08546 0.2s done
#5 DONE 0.3s
#6 [auth] clamav/clamav:pull token for registry-1.docker.io
#6 DONE 0.0s
#7 [auth] library/debian:pull token for registry-1.docker.io
#7 DONE 0.0s
#8 [internal] load metadata for docker.io/library/debian:11-slim
#8 DONE 0.2s
#9 [internal] load metadata for docker.io/clamav/clamav:latest
#9 DONE 0.2s
#10 [internal] load build context
#10 DONE 0.0s
#11 [stage-base 1/49] FROM docker.io/library/debian:11-slim@sha256:98d3b4b0cee264301eb1354e0b549323af2d0633e1c43375d0b25c01826b6790
#11 resolve docker.io/library/debian:11-slim@sha256:98d3b4b0cee264301eb1354e0b549323af2d0633e1c43375d0b25c01826b6790 0.0s done
#11 DONE 0.0s
#12 importing cache manifest from local:9656101879626942798
#12 DONE 0.0s
#13 FROM docker.io/clamav/clamav:latest@sha256:314c46478306f1bbf3216e2a8ca4b3cb87ba5dd1e14fe4d43f0e3d13712a4af1
#13 resolve docker.io/clamav/clamav:latest@sha256:314c46478306f1bbf3216e2a8ca4b3cb87ba5dd1e14fe4d43f0e3d13712a4af1
#13 ...
#10 [internal] load build context
#10 transferring context: 295.46kB 0.0s done
#10 DONE 0.1s
#13 FROM docker.io/clamav/clamav:latest@sha256:314c46478306f1bbf3216e2a8ca4b3cb87ba5dd1e14fe4d43f0e3d13712a4af1
#13 resolve docker.io/clamav/clamav:latest@sha256:314c46478306f1bbf3216e2a8ca4b3cb87ba5dd1e14fe4d43f0e3d13712a4af1 0.0s done
#13 sha256:24cb207b181c6103680fa838d6c19b2baa1869aee6afcd891ce46b7b174f7b26 1.26kB / 1.26kB 0.0s done
#13 sha256:2d8c7c5ce39eaa53a3997135d3c16598f489f99655024514de17424d064b03e4 348B / 348B 0.0s done
#13 sha256:68331520d622a7054a5e17fa38f2f5e25bf0680d93adfee677445f671ec4e3ba 1.66MB / 1.66MB 0.1s done
#13 sha256:06486e751a263a61f8582b3ef09ed4a80cdc2a3dbce6d1832dd2e0f2f8cf9e33 7.34MB / 231.14MB 0.2s
#13 sha256:06486e751a263a61f8582b3ef09ed4a80cdc2a3dbce6d1832dd2e0f2f8cf9e33 19.92MB / 231.14MB 0.3s
#13 sha256:c158987b05517b6f2c5913f3acef1f2182a32345a304fe357e3ace5fadcad715 3.37MB / 3.37MB 0.1s done
#13 sha256:cff7aab4088b8607efe477bdd4a9e0185bc8ed8339e171980897550e15390466 11.53MB / 78.00MB 0.2s
#13 extracting sha256:c158987b05517b6f2c5913f3acef1f2182a32345a304fe357e3ace5fadcad715
#13 sha256:cff7aab4088b8607efe477bdd4a9e0185bc8ed8339e171980897550e15390466 30.41MB / 78.00MB 0.3s
#13 extracting sha256:c158987b05517b6f2c5913f3acef1f2182a32345a304fe357e3ace5fadcad715 0.2s done
#13 extracting sha256:68331520d622a7054a5e17fa38f2f5e25bf0680d93adfee677445f671ec4e3ba
#13 sha256:06486e751a263a61f8582b3ef09ed4a80cdc2a3dbce6d1832dd2e0f2f8cf9e33 34.83MB / 231.14MB 0.5s
#13 sha256:cff7aab4088b8607efe477bdd4a9e0185bc8ed8339e171980897550e15390466 47.63MB / 78.00MB 0.5s
#13 sha256:06486e751a263a61f8582b3ef09ed4a80cdc2a3dbce6d1832dd2e0f2f8cf9e33 57.67MB / 231.14MB 0.6s
#13 sha256:cff7aab4088b8607efe477bdd4a9e0185bc8ed8339e171980897550e15390466 59.77MB / 78.00MB 0.6s
#13 sha256:cff7aab4088b8607efe477bdd4a9e0185bc8ed8339e171980897550e15390466 77.59MB / 78.00MB 0.8s
#13 sha256:06486e751a263a61f8582b3ef09ed4a80cdc2a3dbce6d1832dd2e0f2f8cf9e33 83.96MB / 231.14MB 0.9s
#13 sha256:cff7aab4088b8607efe477bdd4a9e0185bc8ed8339e171980897550e15390466 78.00MB / 78.00MB 0.9s done
#13 extracting sha256:68331520d622a7054a5e17fa38f2f5e25bf0680d93adfee677445f671ec4e3ba 0.5s done
#13 extracting sha256:cff7aab4088b8607efe477bdd4a9e0185bc8ed8339e171980897550e15390466
#13 sha256:06486e751a263a61f8582b3ef09ed4a80cdc2a3dbce6d1832dd2e0f2f8cf9e33 101.71MB / 231.14MB 1.1s
#13 sha256:06486e751a263a61f8582b3ef09ed4a80cdc2a3dbce6d1832dd2e0f2f8cf9e33 114.29MB / 231.14MB 1.2s
#13 sha256:06486e751a263a61f8582b3ef09ed4a80cdc2a3dbce6d1832dd2e0f2f8cf9e33 [131](https://github.com/docker-mailserver/docker-mailserver/actions/runs/3945342546/jobs/6752151872#step:7:135).76MB / 231.14MB 1.4s
#13 sha256:06486e751a263a61f8582b3ef09ed4a80cdc2a3dbce6d1832dd2e0f2f8cf9e33 152.70MB / 231.14MB 1.5s
#13 sha256:06486e751a263a61f8582b3ef09ed4a80cdc2a3dbce6d1832dd2e0f2f8cf9e33 170.92MB / 231.14MB 1.7s
#13 sha256:06486e751a263a61f8582b3ef09ed4a80cdc2a3dbce6d1832dd2e0f2f8cf9e33 188.74MB / 231.14MB 1.8s
#13 sha256:06486e751a263a61f8582b3ef09ed4a80cdc2a3dbce6d1832dd2e0f2f8cf9e33 214.96MB / 231.14MB 2.0s
#13 sha256:06486e751a263a61f8582b3ef09ed4a80cdc2a3dbce6d1832dd2e0f2f8cf9e33 229.64MB / 231.14MB 2.1s
#13 sha256:06486e751a263a61f8582b3ef09ed4a80cdc2a3dbce6d1832dd2e0f2f8cf9e33 231.14MB / 231.14MB 3.0s done
#13 extracting sha256:cff7aab4088b8607efe477bdd4a9e0185bc8ed8339e171980897550e15390466 2.3s done
#13 extracting sha256:2d8c7c5ce39eaa53a3997[135](https://github.com/docker-mailserver/docker-mailserver/actions/runs/3945342546/jobs/6752151872#step:7:139)d3c16598f489f99655024514de17424d064b03e4 done
#13 extracting sha256:24cb207b181c6103680fa838d6c19b2baa1869aee6afcd891ce46b7b174f7b26 done
#13 DONE 3.3s
#13 FROM docker.io/clamav/clamav:latest@sha256:314c46478306f1bbf3216e2a8ca4b3cb87ba5dd1e14fe4d43f0e3d[137](https://github.com/docker-mailserver/docker-mailserver/actions/runs/3945342546/jobs/6752151872#step:7:141)12a4af1
#13 extracting sha256:06486e751a263a61f8582b3ef09ed4a80cdc2a3dbce6d[183](https://github.com/docker-mailserver/docker-mailserver/actions/runs/3945342546/jobs/6752151872#step:7:187)2dd2e0f2f8cf9e33
#13 extracting sha256:06486e751a263a61f8582b3ef09ed4a80cdc2a3dbce6d1832dd2e0f2f8cf9e33 1.5s done
#13 DONE 4.8s
#14 [stage-base 3/49] RUN chmod +x /usr/local/bin/sedfile
#14 CACHED
#15 [stage-base 4/49] COPY target/scripts/build/* /build/
#15 CACHED
#16 [stage-base 5/49] COPY target/scripts/helpers/log.sh /usr/local/bin/helpers/log.sh
#16 CACHED
#17 [stage-base 6/49] RUN /bin/bash /build/packages.sh
#17 CACHED
#18 [stage-base 2/49] COPY target/bin/sedfile /usr/local/bin/sedfile
#18 CACHED
#19 [stage-base 7/49] RUN <<EOF (echo '0 */6 * * * clamav /usr/bin/freshclam --quiet' >/etc/cron.d/clamav-freshclam...)
#19 CACHED
ERROR: failed to solve: invalid user index: -1
Related workflow logs for bug reporting:
Run docker/[email protected]
with:
context: .
platforms: linux/amd6[4](https://github.com/docker-mailserver/docker-mailserver/actions/runs/3945342546/jobs/6752151872#step:7:4)
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max
outputs: type=cacheonly
load: false
no-cache: false
pull: false
push: false
github-token: ***
Docker info (20.10.22)
/usr/bin/docker version
Client:
Version: 20.10.22+azure-1
API version: 1.41
Go version: go1.18.9
Git commit: 3a2c30b63ab20acfcc3f3550ea756a0561655a77
Built: Thu Dec 15 15:37:38 UTC 2022
OS/Arch: linux/amd64
Context: default
Experimental: true
Server:
Engine:
Version: 20.10.22+azure-1
API version: 1.41 (minimum version 1.12)
Go version: go1.18.9
Git commit: 42c8b314993e5eb3cc2776da0bbe41d5eb4b707b
Built: Thu Dec 15 22:17:04 2022
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.5.16+azure-1
GitCommit: 2e3140a0e09d[28](https://github.com/docker-mailserver/docker-mailserver/actions/runs/3945342546/jobs/6752151872#step:7:30)8a9086474752b4478aa0964e7c
runc:
Version: 1.1.4
GitCommit: 5fd4c4d144137e991c4acebb2146ab1483a97925
docker-init:
Version: 0.19.0
GitCommit:
/usr/bin/docker info
Client:
Context: default
Debug Mode: false
Plugins:
buildx: Docker Buildx (Docker Inc., 0.9.1+azure-2)
compose: Docker Compose (Docker Inc., 2.15.1+azure-1)
Server:
Containers: 1
Running: 1
Paused: 0
Stopped: 0
Images: 20
Server Version: 20.10.22+azure-1
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Native Overlay Diff: false
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: 2e3140a0e09d288a9086474752b4478aa0964e7c
runc version: 5fd4c4d144137e991c4acebb2146ab1483a97925
init version:
Security Options:
apparmor
seccomp
Profile: default
Kernel Version: 5.15.0-10[30](https://github.com/docker-mailserver/docker-mailserver/actions/runs/3945342546/jobs/6752151872#step:7:32)-azure
Operating System: Ubuntu 20.04.5 LTS
OSType: linux
Architecture: x86_64
CPUs: 2
Total Memory: 6.781GiB
Name: fv-az628-879
ID: J5HJ:OPXN:RYBU:[55](https://github.com/docker-mailserver/docker-mailserver/actions/runs/3945342546/jobs/6752151872#step:7:57)NP:DUWN:INRV:KGP3:GG3Y:CDQE:4K4D:LC24:LEZB
Docker Root Dir: /var/lib/docker
Debug Mode: false
Username: githubactions
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
Buildx version (0.9.1)
/usr/bin/docker buildx version
github.com/docker/buildx 0.9.1+azure-2 ed00243a0ce2a0aee75311b06e32d33b44729689
/usr/bin/docker buildx build --cache-from type=local,src=/tmp/.buildx-cache --cache-to type=local,dest=/tmp/.buildx-cache-new,mode=max --iidfile /tmp/docker-build-push-r1dOWM/iidfile --output type=cacheonly --platform linux/amd64 --metadata-file /tmp/docker-build-push-r1dOWM/metadata-file .
Additional references
UPDATE 2: Resolved. This was a misunderstanding on my part. I didn't realize Docker Engine
20.10.22from Dec 2022 still used BuildKitv0.8.4from Apr 2021. buildxv0.9.1was using BuildKitv0.11.0instead where--linkis actually supported not silently ignored for backwards compatibility.UPDATE: See next message for a minimal reproduction. Not a cache issue, seems specific tobuildxwhen using thedocker-containerdriver.I also somehow missed an existing issue with the same error message.
Original report (invalid)
I am assuming this has something to do with caching we have used in CI (via the Github Actiondocker-build-push), as a local build does not fail like this.Local
This correctly uses existing layer cache up until the change for
COPY --linkadding--chown=clamav.Command run:
Terminal output
CI
This is what the command in CI looks like:
/usr/bin/docker buildx build \ --cache-from type=local,src=/tmp/.buildx-cache \ --cache-to type=local,dest=/tmp/.buildx-cache-new,mode=max \ --iidfile /tmp/docker-build-push-r1dOWM/iidfile \ --output type=cacheonly \ --platform linux/amd64 \ --metadata-file /tmp/docker-build-push-r1dOWM/metadata-file \ .CI logs
The layer cache seems to be correctly used here too. I'm not sure why it fails other than the caching strategy likely being different? The
clamavuser does exist by this point (created in an earlierRUNto a shell script that installs a package that adds the user).Fails with the following error:
Full build log
Related workflow logs for bug reporting:
Run docker/[email protected]
Docker info (20.10.22)
Buildx version (0.9.1)
Additional references
DockerfileDockerfileline change failing to build