Docker: when to use it and when it complicates your life
Published on 2026-09-12 by frfrand
What Docker really solves (reproducibility), when it adds value without question, when it's dead weight, and the mistakes that turn a good idea into a problem.

Short answer: Docker solves reproducibility: you describe the environment in a Dockerfile, build an image, and that same image runs identically on your laptop, in continuous integration, and in production. It adds value with multiple services of different versions, hard-to-install software, teams sharing an environment, and CI; it's dead weight for a simple app on a small server, for static sites, or if no one on the team masters it. It's not a security wall: it shares the kernel.
Docker is often explained by what it is not. It is said to isolate, and it isolates little compared to a virtual machine. It is said to be lightweight, and that is true but secondary.
What Docker really solves is reproducibility.
The central idea
You write a file that describes the environment: what base image you start from, what dependencies you install, what exact versions, how to start the application.
From that comes an image: a frozen filesystem. That image is identical on your laptop, on the integration server, and in production.
That kills at the root the oldest problem in the trade: "it works on my machine." It doesn't work on your machine: it works on that image, which is the same everywhere.
The four cases where it adds value without discussion
Multiple services with different versions. One project needs Node 18 and another Node 22. One project wants Postgres 14 and another Postgres 17. Without containers that is a permanent headache; with containers, it's nothing.
Software difficult to install. Some tools have long and fragile installation processes. An official image solves in one command what otherwise takes an afternoon.
A team that needs the same environment. Having a new person productive in twenty minutes instead of two days is a real difference.
Continuous integration. Each run starts from a clean and reproducible environment, without state accumulating between runs.
The three cases where it is dead weight
It is worth being honest here, because it is what is almost never said.
A simple application on a small server. If you have a Node app on a VPS, putting it in a container adds pieces: the daemon, the images, the volumes, the internal network. And it adds memory consumption on a machine where memory matters.
Static sites. A compiled site is files. nginx serves them directly, faster and with nothing in between.
When no one on the team knows Docker. A layer that only one person understands is a fragile layer. The day that person is not there, deployment becomes a mystery.
And a fourth, more subtle one: if what you wanted was isolation, a container is not what you are looking for. It shares the kernel. To truly isolate, you need a virtual machine.
The four mistakes that hurt
Use the latest tag. If your base image is "node:latest", the next build may pull another major version and break everything. And goodbye reproducibility, which was the whole point. Pin versions.
Store data inside the container. The container is disposable. If your database writes inside it, when you recreate it everything is lost. That's what volumes are for.
Put secrets in the image. Everything that enters a layer stays in the image, even if you delete it in another layer. Anyone who downloads that image can recover it. Secrets go as runtime environment variables.
Run as root inside. It's the default behavior and not mandatory. A USER instruction in the Dockerfile greatly reduces the potential damage from a vulnerability.
The short rule
Docker is a packaging tool, not a security wall.
If your problem is "I need this to run the same everywhere", it's excellent. If your problem is "I need this to not be able to touch that", you need something else.
In ArduMaker, the Docker daemon is installed on your VPS with one click, with userns-remap enabled (container processes do not run as the actual root of the VPS), and from the Docker tab of the VPS you see the containers with their logs, you stop, restart or delete them, and you review images, volumes and networks. You can also deploy an image or a Compose as an app. Client separation is provided by the VPS, which is an unprivileged LXD system container; the containers inside handle packaging.


Docker and the VPS are not mutually exclusive alternatives
In a project with frontend, API, and Redis, you can choose to run the services directly with systemd or group them using Docker Compose. The second option helps reproduce versions and dependencies, but adds decisions about volumes, networks, permissions, and image updates.
At ArduMaker, a VPS can serve as an environment where the containers run. Keep the Compose file under version control without embedded secrets and maintain separate backups of persistent data. If you only have a simple API, systemd and Nginx can also be a reasonable solution.
Frequently asked questions
Does Docker isolate like a virtual machine? No. Containers share the host kernel; to isolate workloads you don't trust, a virtual machine is needed.
Why not use the latest tag? Because each build can bring another version of the base image and break reproducibility. Pin versions.
Where do I store container data? In volumes. Everything written inside the container is lost when it is recreated.
Is Docker worth it for a single app on a small VPS? Often not: systemd and nginx are enough and consume less memory.
Related: What is a VPS · Docker on ArduMaker.