# Deploy an OCI image?

**URL:** <https://community.fly.io/t/deploy-an-oci-image/3126>\
**Category:** General\
**Tags:** wishlist\
**Created:** [November 12, 2021, 5:35pm UTC](https://community.fly.io/t/deploy-an-oci-image/3126 "2021-11-12T17:35:31Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![nagisa](https://avatars.discourse-cdn.com/v4/letter/n/3da27b/32.png) [@nagisa](https://community.fly.io/u/nagisa)\
**Post date:** [November 12, 2021, 8:01pm UTC](https://community.fly.io/t/deploy-an-oci-image/3126/3 "2021-11-12T20:01:42Z")

</div>

Thanks, this is what worked for me (I ended up using `docker-archive` tarballs in the end):

```auto
skopeo --insecure-policy --debug copy docker-archive:"$(nix-build)" docker://registry.fly.io/$PROJECT_NAME:latest --dest-creds x:"$(flyctl auth token)" --format v2s2
flyctl deploy -i registry.fly.io/$PROJECT_NAME:latest --remote-only 

```

While it isn’t super complicated, there are a number of things that must go right before things start working. If this was somehow integrated into `flyctl deploy`, that would be ideal.

---

_[View the full topic](https://community.fly.io/t/deploy-an-oci-image/3126)._
