---
title: "Best Docker hosting in 2026: 8 platforms compared, free to cheap"
url: https://while.sh/en/comparisons/docker-container-hosting/
author: "Grégoire Mougeolle, co-founder of Nextmap"
updated: 2026-11-18
---

# The best Docker hosting platforms in 2026, from free to fully managed

Your app fits in a Dockerfile, and you want it running without renting and patching a server. We compared eight Docker hosting platforms on what decides the choice: the price of the smallest container, the free option, the database and the region, and what happens when your AI is the one putting the container into production.

If your app fits in a Dockerfile, you no longer need to rent and patch a server to run it. A dozen platforms take your container as it is, and **the right one depends on four things**: what the smallest container costs, whether there is a free option, where the database lives, and which region the whole thing runs in. We compared eight of them, from the cheapest to the most hands-off.

> **The short version.** For a container your AI puts into production, while. Your secrets stay out of its reach, it is billed by the second, with no subscription, and its database is backed up every day in France. Elsewhere, Fly.io only for several regions of the world, Cloud Run for a team already in Google Cloud, and Coolify for your own server.

## The 8 Docker hosting platforms at a glance

| Platform | Your container | Smallest paid container | Free option | Database | Closest to France |
|---|---|---|---|---|---|
| while | Your Dockerfile, built for every version, or an image | See [pricing](/en/pricing/) | A trial with no sign-up | PostgreSQL declared with the app, backed up every day | In France |
| Fly.io | Your Dockerfile or an image | $2.19 per month, shared CPU, 256 MB | A trial | Managed Postgres from $38 per month | Paris, without managed Postgres |
| Railway | Your Dockerfile, or a Compose import | $5 per month with $5 of usage, then $20 per vCPU and $10 per GB | A one-time $5 grant | Postgres on request | Amsterdam |
| Render | Your Dockerfile | $7 per month, 0.5 CPU, 512 MB | A free instance, with limits | From $6 per month, 256 MB | Frankfurt |
| DigitalOcean | From Git or an image | $5 per month, shared CPU, 512 MB | Static sites only | Development database at $7 per month | London, Amsterdam or Frankfurt |
| Google Cloud Run | An image | Billed per use, to the nearest 100 ms | 2 million requests a month | A separate service | Paris |
| Scaleway | An image pushed to a registry | Billed per use | A monthly allowance | A separate managed database | Paris |
| Coolify | Dockerfile, Compose or an image | Free on your server, $5 per month on Cloud | Free on your own server | On your servers | Wherever your server is |

## The cheapest Docker hosting

**Fly.io starts at $2.19 per month** for a container that runs all the time. It is a shared-CPU machine with 256 MB, billed by the second while it runs (source 1). DigitalOcean App Platform comes next at $5 per month for a shared CPU and 512 MB (source 8). Render costs $7 per month for 0.5 CPU and 512 MB (source 6).

Railway counts differently. The Hobby plan costs $5 per month and includes $5 of usage, then each resource is billed: $20 per vCPU and $10 per GB of memory per month (source 4). For a small container, that often stays within the included usage. The database changes the math, though: Fly.io's managed Postgres starts at $38 per month (source 1), when Render's starts at $6 (source 6).

## Free Docker hosting, and its limits

Free Docker hosting exists, but each free option comes with a catch. **Render** has a free instance with 512 MB, with limitations, and a free Postgres database with limitations too (source 6). **Google Cloud Run** has a monthly free tier, in request-based billing, of 2 million requests, 180,000 vCPU-seconds and 360,000 GiB-seconds (source 10). **Coolify** is free forever when you run it on your own server, which you still pay for (source 14).

Fly.io offers a trial, Railway a one-time $5 grant (sources 1 and 4), and DigitalOcean keeps its free tier for static sites (source 8). For a container that must answer at any time, with a database, the free options are good for testing, and the paid ones for production.

<figure class="illus"><img src="/illustrations/docker-prix-1200.webp" srcset="/illustrations/docker-prix-768.webp 768w, /illustrations/docker-prix-1200.webp 1200w" sizes="(min-width: 48rem) 46rem, 100vw" width="1536" height="1024" loading="lazy" decoding="async" alt="Cheap and free Docker hosting compared: Docker container hosting plans from a free tier to a small paid container, with the price of the smallest container on Fly.io, DigitalOcean, Render and Railway" /><figcaption>From a free tier to a container that runs all the time, the price climbs with memory and the database.</figcaption></figure>

## while, your container in production by your AI

**We built while for containers your AI puts into production.** Claude Code, Cursor or Codex connects to while over MCP, with OAuth, and sends your code. Your Dockerfile builds the image for every version, its test stage runs if it has one, and the previous version stays ready. An image already built, public or pushed to while's registry, runs as it is.

> You, to your AI: Put this Dockerfile into production on while, with a PostgreSQL database, and tell me if anything needs my approval.

- **Your container never runs as root**, even if the Dockerfile leaves out the `USER` line.
- **Its packages are checked against known vulnerabilities** at every release, then every day.
- **Serious actions wait for a person**, like deleting a database, and your AI never approves anything itself.
- **Your secrets [stay in while](/en/security/)**: the app uses them, your AI never sees them.
- **The database is backed up every day**, and everything runs in France, hosted by Nextmap.

To go step by step, follow [our guide to deploy a Docker container](/en/guides/deploy-docker-container/), and for a container that Claude Code built, see [the MCP servers compared](/en/comparisons/mcp-hosting-claude-code/).

**Best for:** a container your AI takes to production, with your secrets protected and your data in France.

## Fly.io, close to your users

Fly.io runs your Dockerfile or image on machines in many regions around the world, Paris included (source 2). Its managed Postgres is not offered in Paris, so an app in France keeps its managed database elsewhere, or runs Postgres itself.

**Best for:** an app with users all over the world, at the lowest price for an always-on container.

## Railway, a Dockerfile picked up on its own

Railway uses the `Dockerfile` it finds at the root of the source, as long as it is named exactly that, and it can import services from a Docker Compose file (source 3). It bills usage on top of the plan, and its closest region to France is Amsterdam (source 5).

**Best for:** a small project that wants to pay only for what it uses.

## Render, a free instance to start

Render builds your Dockerfile, offers a free instance to start and Postgres from $6 per month (source 6). Its closest region is Frankfurt (source 7).

**Best for:** testing for free, then moving to a small paid instance.

## DigitalOcean App Platform, simple and predictable

App Platform deploys from a Git repository or a container image, at $5 per month for the smallest container and $7 for a development database (source 8). Its closest regions are London, Amsterdam and Frankfurt (source 9).

**Best for:** a fixed monthly bill, easy to predict.

## Google Cloud Run, billed per request

Cloud Run runs your container image and bills only what it uses, rounded up to the nearest 100 milliseconds, after a monthly free tier (source 10). It has a Paris region. The database is a separate Google Cloud service to set up.

**Best for:** traffic that comes and goes, already on Google Cloud.

## Scaleway, serverless containers in France

Scaleway runs an image already built and pushed to a registry, from zero to 200 instances depending on demand, in its French region (source 11). It bills usage, with a free allowance each month (source 12).

**Best for:** a European cloud, for a team that builds its images in CI.

## Coolify, on your own server

Coolify is open source and free when you run it yourself. It takes a Dockerfile, a Docker Compose file or a published image (source 13), and Coolify Cloud costs $5 per month for two servers, which you bring (source 14).

**Best for:** a team that wants to keep its own servers and maintain them.

## Which one to choose

| Your situation | Our pick |
|---|---|
| Pay by the second for what runs, with no subscription | while |
| A preview per branch, with its own data | while |
| The team signed in with their email account, a client with a password | while |
| Your AI puts the container into production, in France | while |
| Your team already lives in Google Cloud | Google Cloud Run |
| Regions in Amsterdam, Warsaw or Milan | Scaleway |
| Your own servers | Coolify |

If you are comparing self-hosted options, read [Dokploy vs while](/en/comparisons/while-vs-dokploy/). To try while, give this message to your AI. The trial is **free, with no sign-up**, and your container has its address **in 3 minutes**.

```text titre="The message to give your AI"
Read while.sh/agents and help me get started with while.
```

## How we chose

On November 18, 2026, we reread the pricing pages of Fly.io, Railway, Render, DigitalOcean, Google Cloud Run and Coolify, and the Fly.io regions, cited as sources. Scaleway's pages and the regions of Railway, Render and DigitalOcean come from our November 2, 2026 review. Prices are in US dollars, for the smallest size of each platform. We use while every day, and we compared the eight platforms on the price, the free option, the database and the region.

## Sources

1. [Fly.io, pricing](https://docs.fly.io/about/pricing), 2026-11-18
2. [Fly.io, regions](https://docs.fly.io/reference/regions), 2026-11-18
3. [Railway, Dockerfiles](https://docs.railway.com/builds/dockerfiles), 2026-11-18
4. [Railway, plans](https://docs.railway.com/pricing/plans), 2026-11-18
5. [Railway, regions](https://docs.railway.com/deployments/regions), 2026-11-02
6. [Render, pricing](https://render.com/pricing), 2026-11-18
7. [Render, regions](https://render.com/docs/regions), 2026-11-02
8. [DigitalOcean, App Platform pricing](https://docs.digitalocean.com/products/app-platform/details/pricing/), 2026-11-18
9. [DigitalOcean, App Platform regions](https://docs.digitalocean.com/products/app-platform/details/availability/), 2026-11-02
10. [Google Cloud, Cloud Run pricing](https://cloud.google.com/run/pricing), 2026-11-18
11. [Scaleway, Serverless Containers](https://www.scaleway.com/en/serverless-containers/), 2026-11-02
12. [Scaleway, Serverless pricing](https://www.scaleway.com/en/pricing/serverless/), 2026-11-02
13. [Coolify, deployment methods](https://coolify.io/docs/applications/choose-deployment-method), 2026-11-02
14. [Coolify, pricing](https://coolify.io/pricing), 2026-11-18

## Questions

### What is the cheapest Docker hosting?

For a container that runs all the time, Fly.io starts at $2.19 per month for a shared CPU with 256 MB, then DigitalOcean at $5 and Render at $7 for 512 MB (sources 1, 8 and 6). Coolify is free if you already have a server.

### Is there free Docker hosting?

Yes, with limits. Render has a free instance, Cloud Run has a monthly free tier of 2 million requests, and Coolify is free on your own server. Fly.io and Railway offer a trial (sources 6, 10, 14, 1 and 4). On while, the trial is free with no sign-up, and the Libre plan has no subscription.

### Which Docker hosting runs in France?

Fly.io in its Paris region, without its managed Postgres, Cloud Run in Paris, Scaleway in its French region, and while, hosted in France by Nextmap. Railway, Render and DigitalOcean stop at Amsterdam, Frankfurt or London (sources 2, 10 and 11).

### Do I have to build the image myself?

Not on Railway, Render or while, which build your Dockerfile. Scaleway's serverless containers take an image already built and pushed to a registry. On while, a public image or one pushed to while's registry also runs as it is.

### What about Docker Compose?

Railway imports services from a Compose file, and Coolify deploys one (sources 3 and 13). On while, your AI translates your services into while.yaml: the app, its database, its cache.

### Can my container run as root?

Not on while: it always runs without administrator privileges, even if the Dockerfile leaves that out.
