A VPS for Docker containers
A self-hosted stack of 5~10 containers fits on S4 or S8, and our Docker CE image starts with Docker Engine and Compose ready. Size by the memory of the containers you run, not by their count.
Recommended start: S4, $4.25/mo
How do I size a Docker host?
Add up the memory each container uses under normal load, then add 1 GB for the OS and Docker itself. The count of containers is irrelevant; one database container can outweigh ten small web apps.
Start from these rough figures and correct them with docker stats --no-stream after a few days:
- Reverse proxy (Caddy, Traefik, Nginx): 20~60 MB
- Small Go or Node.js service: 50~200 MB
- PostgreSQL for a few apps: 300 MB~1 GB
- Redis with a cap: 50~300 MB
- Nextcloud, Gitea or a wiki: 300~800 MB each
- Java services or Elasticsearch: 1~4 GB each
A typical homelab set (proxy, a password manager, a wiki, a Git server, Uptime Kuma and PostgreSQL) uses 2~3 GB, which makes S4 a good start.
Should I choose x86 or Arm for containers?
Arm is worth it when every image you need is published for linux/arm64. The Arm family runs Ampere Altra cores with a full core per vCPU, and services in Go, Rust, Node.js and Java usually perform very well on it.
Check before ordering: docker manifest inspect nginx:latest | grep architecture lists the platforms an image supports. Most official images are multi-arch. Older or niche images may be x86 only; for those, use the Shared vCPU family in Europe or Performance anywhere. If you build your own images, docker buildx build --platform linux/amd64,linux/arm64 produces both. Arm plans are sold in four European cities: Frankfurt, Nuremberg, Helsinki and Amsterdam.
Plans that fit
Sizes picked for this project, smallest first. Prices are per month; the order total is the shortest term that reaches $40.
How do I start with the Docker CE image?
Pick the Docker CE image when you order. It is Ubuntu 24.04 with Docker Engine and the Compose plugin installed, so you can go straight to your stack:
docker version
mkdir -p /opt/stack && cd /opt/stack
nano compose.yaml
docker compose up -d
docker compose psKeep one directory per stack under /opt, with its compose.yaml and an .env file for secrets (mode 600). Use named volumes or bind mounts under /opt/stack/data for anything that must survive a container update. The Docker Compose guide walks through a full example with a reverse proxy and HTTPS.
Why does Docker bypass my ufw firewall?
Docker writes its own iptables rules for published ports, and those rules are evaluated before ufw. A container started with -p 5432:5432 is reachable from the internet even if ufw denies port 5432.
The fix is to publish only what must be public and bind everything else to localhost:
services:
db:
image: postgres:16
ports:
- "127.0.0.1:5432:5432"
web:
image: caddy:2
ports:
- "80:80"
- "443:443"Better still, do not publish database ports at all; containers on the same Compose network reach each other by service name. Verify from another machine with nmap -p- your-server-ip after every change.
How do I stop containers from filling memory and disk?
Set limits, rotate logs and prune old images. Without these three, a long-running Docker host slowly fills up.
- Memory limits per service: in Compose,
mem_limit: 512m(ordeploy.resources.limits.memory). A leaking container is then restarted on its own instead of starving the whole server. - Log rotation: in
/etc/docker/daemon.jsonset"log-driver": "json-file", "log-opts": {"max-size": "10m", "max-file": "3"}and restart Docker. Default logs grow without limit. - Pruning: a weekly cron of
docker image prune -af --filter "until=168h"removes images older than a week that no container uses. - Check usage:
docker system dfshows what images, volumes and build cache occupy.
How much traffic does a Docker host use?
Pulling images is incoming traffic and costs nothing. What counts is what your containers serve to users: web pages, file downloads, media streams and API responses.
Self-hosted tools for a few people use a few GB a month. A public file share or media server is different: one person streaming video can move 50~100 GB in a month. In Europe the included 20 TB on S8 covers almost any personal or small-team setup. Outside Europe, P8 includes 2 TB in North America and 2 TB in Asia-Pacific.
What does a Docker host cost?
S4 is $4.25 a month as $51.00 for 12 months; A8 on Arm gives 8 GB for $7.85 a month and is sold from $47.10 for 6 months. For backups of volumes, the add-on keeps seven daily copies of the whole disk, and on S8 a full year with backups is $91.44. Pair it with a database dump inside your Compose stack so you can restore one service without rolling back the others.
Docker host, answered
Can I run Kubernetes?
There is no managed Kubernetes service, but you can install a light distribution such as k3s on one or more servers. For a single host, Docker Compose is simpler and uses less memory.
Can I use Podman instead of Docker?
Yes. Start from Rocky Linux 10, AlmaLinux 10 or Fedora 43, where Podman is the native container tool.
Is there a web UI for containers?
You can run Portainer as a container, or choose the Coolify image if you want Git deploys and a dashboard from the start.
How do I update containers?
Run docker compose pull and docker compose up -d in the stack directory. Pin image tags to a major version so updates do not jump releases unexpectedly.
Can containers use the IPv6 /64?
Yes. Enable IPv6 in /etc/docker/daemon.json with "ipv6": true and a subnet from your /64, then restart Docker.
Build it on CheapVPS
Pick the plan, a city near your users and the image, then pay the order in crypto.