https://prefect.io logo
#prefect-community
Title
# prefect-community
r

Rio McMahon

06/02/2022, 3:47 PM
Hello - I am running into an issue where docker containers built on M1 Mac’s vs Intel Mac’s perform differently; the M1 Mac containers will get stuck in a “scheduled” state. Has this problem cropped up before?
k

Kevin Kho

06/02/2022, 3:50 PM
Yeah it happens because Docker images on one architecture are not compatible with the execution environment. It’s easier if you can use the
prefecthq/prefect
image as a base image to make your own because it’s cross platform.
👍 1
a

Anna Geller

06/02/2022, 3:55 PM
check this for a solution
r

Rio McMahon

06/02/2022, 4:04 PM
We’d prefer to keep using our image if possible - we are able to build the image successfully on M1 silicon with this command
docker build --platform linux/amd64 -t image_name .
; we are using an ECS agent without any special instructions to use ARM compute. We are using
GitLab
for our storage so we don’t have the option to specify the
"platform": "linux/amd64"
build_kwarg. Thoughts on doing this for an ECS agent?
a

Anna Geller

06/02/2022, 4:18 PM
The problem here is only related to the build of the image, not runtime - if you specified amd64 at image build time and set this amd64-based image on your run config, you should be good
👍 1
3 Views