abundant-tent-27407
07/22/2025, 9:22 AMdocker_environment
to create two environments from the same multi platform image it works the first time the image is not downloaded locally, but then fails for the other platform.
Build file:
docker_environment(
name = "golang-bookworm",
image = "golang@sha256:81c97ed10e57e92aa271ef8cb296cb3fb45e510634dcc1e5e76b6239150a1419",
platform = "linux_x86_64",
)
docker_environment(
name = "golang-bookworm-arm",
image = "golang@sha256:81c97ed10e57e92aa271ef8cb296cb3fb45e510634dcc1e5e76b6239150a1419",
platform = "linux_arm64",
)
Error when using the arm version:
IntrinsicError: Failed to create Docker container: DockerResponseServerError { status_code: 404, message: "image with reference golang@sha256:81c97ed10e57e92aa271ef8cb296cb3fb45e510634dcc1e5e76b6239150a1419 was found but its platform (linux/amd64) does not match the specified platform (linux/arm64)" }
worried-piano-22913
07/22/2025, 3:07 PMdocker manifest inspect golang@sha256:81c97ed10e57e92aa271ef8cb296cb3fb45e510634dcc1e5e76b6239150a1419
.abundant-tent-27407
07/22/2025, 3:49 PMhappy-kitchen-89482
07/25/2025, 8:47 PMabundant-tent-27407
07/28/2025, 12:10 PMdocker manifest inspect
on the multiplatform image, you can see the platform specific SHA, and use that for each of the docker_environment
imageshappy-kitchen-89482
07/28/2025, 9:40 PM