Docker app (Ubuntu 24.04 LTS base) on BitcoinVPS
| Item | Value |
|---|---|
| Image | |
| Type | One-click app, installed on Ubuntu 24.04 LTS during setup |
| Price | Included with every plan |
| Plans | All 34 plans in all 32 cities |
| Access | root over SSH, with your SSH keys or the root password shown in the console |
| Switch later | Reinstall from the server Settings tab (erases the disk) |
Which packages ship with the Docker image out of the box?
A standard Ubuntu 24.04 LTS base, plus Docker Engine, the containerd runtime, the Docker CLI and the Compose v2 plugin, so docker compose (with a space) is the command to use. The Docker service is enabled and starts at boot. Everything else about the server is the same as the plain Ubuntu 24.04 image: root over SSH, apt, ufw available, systemd for services. Confirm the versions after your first login:
docker version
docker compose version
systemctl status docker
docker run --rm hello-worldHow do I log in and run my first stack?
Log in as root with the SSH key you chose at deploy, or with the root password shown in the console. Create a folder per project, put a compose.yaml in it and start it:
mkdir -p /srv/app && cd /srv/app
nano compose.yaml
docker compose up -d
docker compose ps
docker compose logs -fKeep data in named volumes or bind mounts under /srv, never only inside a container, so that recreating a container does not lose anything. If you prefer to work as a normal user, add that user to the docker group with usermod -aG docker yourname; be aware that this group is root-equivalent.
How much memory and CPU do containers need here?
Docker itself is light: the daemon and containerd together use roughly 80 to 150 MB on top of the base system. What matters is the sum of your containers. A single small service, such as a bot or an uptime monitor, runs on 1 GB like F1-1 if you add swap. A typical web stack in Compose, a reverse proxy plus an app plus PostgreSQL plus Redis, needs 2 GB at minimum and runs more calmly on 4 GB, for example A2-4, which also includes 5 TB of transfer for image pulls. Hosts running ten or more containers, or anything with Java or Elasticsearch inside, belong on A4-8 or I8-16.
Set memory limits per service with mem_limit or deploy.resources.limits so one runaway container cannot starve the rest.
Why does ufw not block my container ports?
For every published port, Docker inserts iptables rules of its own, and packets hit those rules ahead of ufw. A service published with ports: - "5432:5432" is therefore reachable from the internet even if ufw says the port is closed. Expose only the ports the outside world truly needs, and tie every other port to 127.0.0.1:
ports:
- "127.0.0.1:5432:5432"Put a single reverse proxy such as Caddy or Traefik on ports 80 and 443 and let it reach your apps over a Docker network. The firewall tutorial covers the DOCKER-USER chain for advanced filtering.
Plans that suit Docker
| Plan | Why | Size | Monthly | Order from |
|---|---|---|---|---|
| F1-1 | One small container with swap | 1 vCPU, 1 GB RAM, 32 GB NVMe | $3.60/mo | $43.20 for 12 months |
| A2-4 | Typical Compose web stack with database | 2 vCPU, 4 GB RAM, 100 GB NVMe | $14.40/mo | $43.20 for 3 months |
| I2-4 | Same size, sold in all 32 cities | 2 vCPU, 4 GB RAM, 100 GB NVMe | $14.40/mo | $43.20 for 3 months |
| A4-8 | Ten or more containers, 6 TB for pulls | 4 vCPU, 8 GB RAM, 180 GB NVMe | $28.80/mo | $86.40 for 3 months |
| I8-16 | Heavy stacks with Java or search engines | 8 vCPU, 16 GB RAM, 350 GB NVMe | $57.60/mo | $57.60 for 1 month |
How do I get HTTPS for containerised apps?
Run a reverse proxy container that handles certificates for you. Caddy is the shortest path: point a DNS A record (and AAAA for IPv6) at the server, then a Caddyfile with app.example.com { reverse_proxy app:3000 } gives you a Let's Encrypt certificate on first request. Traefik does the same with labels on each service. Both need ports 80 and 443 open in ufw and reachable, and a volume to store certificates so they survive restarts. See Caddy HTTPS and DNS records.
How should I back up a Docker host?
Back up data, not containers. Images can be pulled again; your volumes and Compose files cannot. A simple routine: keep every compose.yaml in Git, dump databases with docker compose exec db pg_dump or mysqldump on a schedule, and copy /srv plus the dumps off the server with restic or rsync. Add our daily backup option at deploy for a whole-disk copy as a second layer: $2.88 a month on A2-4, listed on the Backups tab and restored through a support ticket.
What is the routine for updating Docker and the containers it runs?
The host updates with apt: apt update && apt upgrade brings new Docker Engine and Compose releases along with Ubuntu security fixes; containers restart when the daemon is upgraded, so set restart: unless-stopped on long running services. For your applications, run docker compose pull and docker compose up -d in each project folder, then clean old layers with docker image prune. Disk fills quietly on container hosts, so check docker system df and the usage graphs every few weeks, and cap log size in /etc/docker/daemon.json with the json-file max-size option.
What do people deploy with this image?
- Self-hosted tools from Compose files: password managers, analytics, wikis, status pages.
- Crypto infrastructure: block explorers, Lightning tooling, price oracles and trading bots packaged as containers.
- Staging environments that mirror production Compose files.
- CI services: a GitLab or Forgejo runner using the Docker executor, see CI runners.
Before you deploy Docker app (Ubuntu 24.04 LTS base)
Is Docker Compose included?
Yes, as the Compose v2 plugin. Use docker compose with a space; the old docker-compose binary is not needed.
Can I use Podman instead?
You can install Podman from apt on the same Ubuntu base, but running both engines side by side is confusing. If you want Podman only, deploy the plain Ubuntu 24.04 image.
Why is my database reachable from the internet although ufw is on?
Published Docker ports bypass ufw. Bind them to 127.0.0.1 in compose.yaml and expose only the reverse proxy.
Which plan is best for a Docker host?
Start at 4 GB, such as A2-4 or I2-4, for a typical web stack. Single small containers fit 1 GB plans with swap.
Does the Docker image cost extra?
No. Every image, including the six one-click apps, is included with the plan price.
Can I switch a plain Ubuntu server to the Docker image?
Yes, with Reinstall in Settings, which erases the disk. Or keep your data and install Docker Engine yourself with the Docker Engine tutorial.