<#21323 Conflicts between architecture of image pr...
# github-notifications
c
#21323 Conflicts between architecture of image present on system when building PEX with `docker_environment` Issue created by ntr-switchdin Describe the bug Building a pex inside a container with the same image tag as one present on the host sytem causes the packaging to fail with an
InstrinsicError
Pants version 2.21 OS
Copy code
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", )
Copy code
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:
Copy code
image="amd64/python:3.11-slim-buster",
pantsbuild/pants