# Preview: Deploying applications on Machines with flyctl

**URL:** <https://community.fly.io/t/preview-deploying-applications-on-machines-with-flyctl/6171>\
**Category:** General\
**Created:** [July 27, 2022, 4:21pm UTC](https://community.fly.io/t/preview-deploying-applications-on-machines-with-flyctl/6171 "2022-07-27T16:21:49Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![ignoramous](https://avatars.discourse-cdn.com/v4/letter/i/a9adbd/32.png) [@ignoramous](https://community.fly.io/u/ignoramous)\
**Post date:** [September 19, 2022, 2:42pm UTC](https://community.fly.io/t/preview-deploying-applications-on-machines-with-flyctl/6171/6 "2022-09-19T14:42:51Z")

</div>

Curiously,

```python
flyctl deploy --app <app-name> --config <config> --image <img>
==> Verifying app config
--> Verified app config
==> Building image
Searching for image 'registry.fly.io/<img>' remotely...
Error failed to fetch an image or build from source: Could not find image "registry.fly.io/<img>"

```

Couldn’t find a valid image for `--app <app-name>`. If I define the same `<app-name>` in the `<config>` file, it works fine.

Similarly,

```python
flyctl deploy --app <app-name> --config <config> --remote-only
==> Verifying app config
--> Verified app config
==> Building image
Remote builder fly-builder-<yolo> ready
==> Creating build context
--> Creating build context done
==> Building image with Docker
--> docker host: 20.10.12 linux x86_64
[+] Building 64.3s (0/1)                                                                                                                                                            
[+] Building -1.6s (18/18) FINISHED                                                                                                                                                 
................
................
--> Building image done
==> Pushing image to fly
--> Pushing image done
image: registry.fly.io/<img>
image size: 000 MB
==> Creating release
Error This operation requires the 'nomad' app platform. This app was created for the 'machines' platform.

```

Didn’t work either, as it thought (wrong) that the Fly Machine app `<app-name>` was actually a regular Fly app: [`nomad`? that’s just lame](https://community.fly.io/t/error-platform-version-mismatch-nomad-machines/4452/6) (:

* * *

Then, there’s this issue with `flyctl deploy --strategy rolling` timing out too: [Error failed to wait for VM in started state: failed to wait for machine to be ready](https://community.fly.io/t/error-failed-to-wait-for-vm-in-started-state-failed-to-wait-for-machine-to-be-ready/7230)

---

_[View the full topic](https://community.fly.io/t/preview-deploying-applications-on-machines-with-flyctl/6171)._
