Can't create app from public ECR image

Hey, i’m trying to create a fly.io app based on a public ECR image, but i’m getting this error

==> Verifying app config
Validating /tmp/a3/fly.toml
Platform: machines
✓ Configuration is valid
--> Verified app config
==> Building image
Searching for image 'public.ecr.aws/alias/repo-name:latest' remotely...
Error: failed to fetch an image or build from source: server returned a non-200 status code: 500

This image seems to be fine when I’m trying to use with docker.

This is my fly.toml:

primary_region = "lhr"

[build]
  image = "public.ecr.aws/alias/repo-name:latest"

[[services]]
  protocol = "tcp"
  internal_port = 3000
  auto_stop_machines = false
  auto_start_machines = false
  min_machines_running = 1

Thanks

You can try setting fly host in the docker compose or the local terminal

FLY_REGISTRY_HOST = registry2.fly.io

I created and pushed a docker manifest list to the repo , seems to fix it.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.