How to Run Docker on a Fresh VPS
Docker turns a bare VPS into a place to run almost any app in a container. Here's the quickest way to install it on a fresh server and launch your first container.
Deploy the server
Create a VPS with Ubuntu (a 1 GB box is fine to start; use 2 GB+ if you'll run several containers). You'll have a root shell in about 60 seconds. Some providers, Kvantis included, also offer a one-click Docker image so it's preinstalled.
Install Docker
If it's not preinstalled:
apt update
apt install -y docker.io
systemctl enable --now docker
Check it works:
docker run hello-world
Run a real container
For example, an nginx web server on port 80:
docker run -d --name web -p 80:80 nginx
Visit your server's IP in a browser and you'll see the nginx page.
Keep containers running
Add --restart unless-stopped so containers survive reboots:
docker run -d --restart unless-stopped -p 80:80 nginx
For multi-container apps, install Docker Compose and describe everything in one file.
Why a VPS for Docker?
- Always-on — unlike your laptop.
- Isolated — containers keep apps tidy and reproducible.
- Cheap and disposable — hourly billing means you can tear it all down anytime.
Get started
Deploy a Docker-ready VPS — crypto only, no KYC, from $10/month.