cool-easter-32542
12/06/2024, 10:30 AMexporting manifest list is not present in Docker's build log.
This is an example build log using BuildKit v0.18 with containerd-snapshotter output, but without provenance attestations:
#15 exporting to image
#15 exporting layers done
#15 preparing layers for inline cache 0.0s done
#15 exporting manifest sha256:0bc80e5cd7fde8722d6d3349bea82c4c4f2ac5a0ec1e02cd46e3557bf3ccf68a done
#15 exporting config sha256:1ce45471d2d286c01b80d7fd1d1d3b991e938495dda695a48027e3ed2fa0af32 done
#15 naming to my-image:latest done
#15 DONE 0.0s
The current parser looks for `exporting manifest list`, which is not present in my log.
Pants version
2.21.2, but the issue currently remains on the main branch.
OS
MacOS (ARM64)
Additional info
Docker BuildKit v0.11+ by default adds provenance attestations to built images, but AWS Lambda does not yet support them.
When using an ARM64 Mac to build Docker images that are to be used in AWS Lambdas, provenance attestations must be disabled. This can be achieved by setting the following environment variable: BUILDX_NO_DEFAULT_ATTESTATIONS=1. This alters Docker's build log which makes pants unable to detect the Docker Image ID.
Pants outputs Docker image ID: <unknown>
pantsbuild/pantscool-easter-32542
12/09/2024, 6:59 AM