cool-easter-32542
08/20/2024, 12:04 AMInstrinsicError
Pants version
2.21
OS
ProductName: macOS
ProductVersion: 14.6.1
BuildVersion: 23G93
Additional info
local_environment(
name="linux",
compatible_platforms=["linux_x86_64"],
fallback_environment="container",
)
docker_environment(
name="container",
platform="linux_x86_64",
image="python:3.11-slim-buster",
)
IntrinsicError: Failed to create Docker container: DockerResponseServerError { status_code: 404, message: "image with reference sha256:12cacc23b6dec78ca7b056d56e3de48252669ed49fffd95ed36adbf9dfe3cec0 was found but does not match the specified platform: wanted linux/amd64, actual: linux/arm64/v8" }
---
possibly could be fixed by specifying the platform of the docker_environment in the command running the build?
i'm working around this currently by specifying the platform image instead of the generic python one:
image="amd64/python:3.11-slim-buster",
pantsbuild/pants