
Overview
Fly.io lets you deploy Docker containers as lightweight Firecracker VMs, running globally. Whilefly launch supports many frameworks and auto-generates deployment configurations, you can also build and push your own Docker images to Fly.io’s private registry and deploy them manually.
This guide walks through building, pushing, deploying, and managing images via Fly.io’s Docker registry.
Tagging images for the Fly.io registry
Each Fly.io app gets a dedicated registry path in the form of:Authenticating and pushing to the registry
Authenticate Docker to use the Fly.io registry:~/.docker/config.json with the required auth token for registry.fly.io. Once authenticated, push your image:
Deploying the image
You can deploy images from the Fly.io registry or public registries, depending on where the image is hosted.To deploy a private image pushed to Fly.io’s registry:
Use the--image option with the fly deploy command:
To deploy a public image from Docker Hub or another public registry:
Specify the image in yourfly.toml file:
Reusing images across apps
Although registry URLs are structured per app, access is scoped per organization. This means you can push an image toregistry.fly.io/app-1 and use it in another app (e.g. app-2) if both apps are in the same Fly.io organization:
Verifying image existence
You can verify that an image exists in the Fly registry without deploying it using Docker:fly auth docker.
For most workflows, use the fly deploy --image option with the Fly Docker registry. For advanced flows like multi-app SaaS provisioning, track image tags using docker manifest inspect or associate them with Machines to retain them.
Listing image tags
There is no API or GraphQL query to list all image tags in the registry. Tags only become visible to Fly when they are part of a release. You can view deployed image references with:Related use case
Want to optimize your deploys with shared layers and pre-installed dependencies? See the Using base images for faster deployments blueprint.Related reading
- Deploy with a Dockerfile The general guide on how to deploy apps from Dockerfiles — useful context when you’re building a base image.
- App Configuration (
fly.toml) Details on how yourfly.tomlorchestrates builds, images, and deployments.