Hello - I am running into an issue where docker co...
# prefect-community
r
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
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
check this for a solution
r
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
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