I am trying to start a machine with the API, I already succesfuly deployed through fly.io CLI the app I want to create a machine for. It is my understanding that by deploying the app through the Fly’s CLI it already has the docker image in the registery.
In the webapp the overview says that the image details has a Registry, Repository and tag.
I am referencing the image in the machines API like this:
“image” : “registry.fly.io/app-name:full-image-tag”
The api error is:
“error”: “App not found”
Thank you for your help.
Can anyone please help me?
As a first step, can you check the output of
flyctl apps list | grep "machines" (or simply,
flyctl apps list) and see if lists your app (as “machines” platform)? If so, what its status?
Thank you for your help, it is listed as “nomad”, not “machines”, status = dead.
Hi, already resolved.
If you are having problems like mine, you have to understand that there are 2 types of Fly.io APPS: Nomad and Machines. I was trying to deploy a machine with a nomad image, that doesn’t work, you need to create a machine APP and then push a docker image (you created) from your local environment to registry.fly.io after that you can create machines using that image.