image must be amd64 architecture for linux os, found arm64 linux

Hello, I’m getting an error when I try to deploy my app, I’m new with Fly and I was following the tutorial. I have a Macbook Pro M1 but another friend with the same computer is not working.

Error image must be amd64 architecture for linux os, found arm64 linux

I updated my Mac and my Docker Desktop with no luck.

Any Clue?

Can you try flyctl deploy --remote-only? That will force it to use our builder, it seems like it’s building an arm image locally. That is probably a bug on our part, but the --remote-only option is a good workaround.

Hi Kurt,

`Thanks for your reply, I got another error:

**Deploying long-thunder-1014**

==> Validating App Configuration

--> Validating App Configuration done

**Services**

TCP 80/443 ⇢ 8080

    Deploy source directory '/Users/amyraygada/python-hellofly-flask'

    ==> Building with Builtin

    Using Builtin Builder: python

    INFO Remote only, hooking you up with a remote Docker builder...

    INFO Waiting for remote builder (fly-builder-snowy-fire-4060) to become available...

    Error Could not ping remote builder within 5 minutes, aborting.`

Any Clue?

What version of flyctl are you running?

I just upgraded and I’m running it again to see if it works I will let you know in a moment

fixed now :slight_smile: thanks @michael

Glad it’s working!

I have this issue but with fly machine.

fly version
Update available 0.0.427 -> v0.0.428.
Run "fly version update" to upgrade.
fly v0.0.427 darwin/arm64 Commit: 72736560 BuildDate: 2022-11-02T20:17:21Z

I cannot update because of “flyctl update available, but it cannot update”

My problem is I actually build arm64 because I’m on M1. Built amd64 image with dockerx and pushed. However I’m still getting the error.

I now have the fly version v0.0.429.

I saw elsewhere in the forum that the image can be cached. Guess I’ll have to wait for a while(?).

Explicitly mentioning the docker tag (latest) seem to have solved this for me.

fly machine run registry.fly.io/app-name-1234:latest --app app-name-1234

1 Like