Docker — isolated containers for stable websites
The entire 4buildsite platform — the editor, the API, the rendering engine and the service that delivers published sites — runs in Docker containers: isolated packages containing everything each service needs. Your site is rendered statically and delivered as a complete version, switched atomically on every publish. In plain terms: publishing never takes it offline, and if something goes wrong you are back on the previous version in seconds.
What a container is — and why it matters for your site
A container is a standardised package containing the application and absolutely everything it needs to run: runtime, libraries, configuration. The container runs isolated from the rest of the server, but uses the host's Linux kernel directly — no separate operating system per application. Docker, launched in 2013, turned this technology into an accessible standard; the image format is now standardised as OCI (Open Container Initiative) and runs identically on any Linux server or cloud.
The classic analogy is the shipping container: whatever cargo it holds, it has the same standard shape and can be moved onto any ship, train or truck. Likewise, the 4buildsite services that build and deliver your site — the editor, the FastAPI API, the rendering engine — are packaged into standard images that run the same on the test server and in production. For you, as a site or shop owner, that means predictability: what you saw in preview is exactly what your visitors get.
- Container = the application + its dependencies, in one isolated package
- Standard OCI format — the same image runs on any server or cloud
- No separate operating system per service — starts in seconds, not minutes
- On 4buildsite, containerisation is handled by the platform — you just publish
Isolation: your site does not depend on its neighbours
On classic shared hosting, hundreds of sites share the same server, the same processes and often the same PHP installation. If a neighbour gets a traffic spike or a badly written script eats all the CPU, your site slows down — the "noisy neighbour" problem. 4buildsite attacks this from two directions. First: published sites are rendered statically — no per-site code (PHP, plugins, scripts) runs on the servers delivering them, so there is no neighbour's badly written script to eat the CPU. Second: the platform services each run in their own container, with separated processes and files (via namespaces) and the option of CPU and memory limits (via cgroups, the Linux kernel's mechanisms).
Isolation matters just as much for security. On shared hosting, one compromised site can become a gateway to neighbouring sites on the same server. On 4buildsite, a published site is a set of static files — there is no per-site code to compromise through plugins or themes — and the platform services that process data (orders, payments, the editor) live in separate containers: the filesystem is isolated, and an incident stays contained inside that container.
- Published site = static files — zero per-site code to slow down or compromise
- Platform services: separate filesystem and processes per container
- Predictable performance: static delivery, just as fast at 3 a.m. and at campaign peak
The same version everywhere: zero "works on my machine"
The most common source of defects on the classic web is the gap between the environment where a site was tested and the server where it runs live: a different language version, a missing extension, a different configuration. A Docker image eliminates this entire class of problems: the image is built once, with all dependencies pinned, and the exact same artefact runs in testing and in production. There is no "manually configured on the server".
For you, this translates directly into stability. When you edit your site in the visual editor at panel.4buildsite.net and hit publish, the version that reaches visitors has gone through the same steps, through the same containerised services, every single time. Fewer surprises after publishing means fewer nights with the shop down — and for an online shop, every hour offline means lost orders.
Zero-downtime publishes and rollback in seconds
On 4buildsite, publishing does not mean "take the site down, copy files, hope". Every publish generates a new, complete version of your site — rendered statically, separate from the one that is live — and the switch to it is atomic: in a single operation, the delivery service starts serving the new version. Visitors see no interruption — not even mid-order, with items in the cart. The same principle applies to the platform services: a container's new version starts alongside the old one and takes traffic only after health checks.
Just as important is the road back. Every published version of the site is kept intact, so returning to the previous version simply means switching back — an operation of seconds, not an hours-long backup restore. If a publish introduces a problem, your shop is not stuck on the broken version. The one honest nuance: data (orders, products, content) lives in the database, separately from published versions — which is why it is managed on persistent volumes, separate from the site files.
- Every publish = a new, complete version, switched atomically — no interruption
- Rollback = switching back to the previous version, in seconds
- Publish changes any time, even in peak sales season, with no downtime risk
Efficiency and cost: more performance for the same money
A classic virtual machine runs a complete operating system for every application — gigabytes of memory and minutes of boot time spent on "packaging" alone. Containers share the host kernel, so far more sites fit on the same server, each with its own isolation. This density is the reason 4buildsite can include hosting and SSL in the subscription, with no separate per-site infrastructure cost.
For your published site, traffic scaling is even simpler: being static files, serving them is extremely cheap — a visitor spike means more files delivered, not extra processes stepping on each other. And the platform services, being containers that start in seconds, can get additional instances when needed. You pay a predictable subscription, not an infrastructure permanently sized for the busiest day of the year. For how we actually operate these containers — orchestration, proxy, CI/CD, monitoring — see the Cloud & DevOps page.
Avantaje și limitări
Avantaje
- The published site is served statically, and the platform runs in isolated containers — a busy or compromised neighbour cannot affect it.
- The same platform images in testing and production — zero "works on my machine".
- Zero-downtime publishes: the new site version is generated separately and switched atomically.
- Instant rollback to the previously published version if a change goes wrong.
- Containers start in seconds — platform services scale fast on traffic spikes.
- High per-server density — hosting included in the subscription, no separate cost.
Limitări
- Isolation uses the host's shared kernel — weaker than the hardware isolation of a dedicated virtual machine.
- The container is ephemeral: persistent data (database, uploaded files) needs separately managed volumes and backups.
- Images and their layers consume disk space — without periodic cleanup they pile up.
- For teams running it themselves, Docker has a real learning curve — on 4buildsite it is fully managed by the platform.
Verdict scurt
Docker containerisation is the industry's de facto standard for running web applications: isolation, test–production consistency and instant rollback. On 4buildsite, the platform that builds and delivers your site runs containerised, and your site's publishes are versioned, switched atomically and reversible in seconds — how the infrastructure is operated (orchestration, proxy, CI/CD) is covered on the Cloud & DevOps page.
Tabel de specificații
| Capability | Limit / threshold | Typical use | |
|---|---|---|---|
| Resource isolation | CPU/RAM limits per container (cgroups, namespaces) | Shared kernel — not hardware isolation like a VM | Sites and shops on shared infrastructure |
| Start / deploy | The container starts in seconds | The first image download takes longer | Frequent publishes and updates, with no interruption |
| Rollback | Return to any previous image in seconds | Database data does not roll back with the image | Instant recovery when an update goes wrong |
| Portability | OCI image — runs on any Linux host or cloud | Images are per-architecture (x86/ARM) | Moving between servers without rewriting the app |
| Density / cost | Dozens of isolated containers on a single server | All share the host's kernel and disk | Low per-site cost — hosting included in the subscription |
Docker vs virtual machines vs shared hosting (cPanel)
| Criterion | Docker (containers) | Virtual machines | Shared hosting (cPanel) |
|---|---|---|---|
| Isolation | Per container (processes, files, resources) | Complete (virtualised hardware) | Weak — hundreds of sites on the same server |
| Start / deploy speed | Seconds | Minutes (full OS boot) | Changes directly on the live server (FTP) |
| Resource overhead | Minimal — no separate OS per application | High — a full OS per machine | Low, but shared uncontrolled between neighbours |
| Rollback | Instant — restart the previous image | From snapshot — slower | Manual, from backup |
| Security | Incident limited to the container | The strongest isolation | One compromised site can affect neighbours |
| Cost per site | Low — high density per server | High — you pay for the whole machine | Very low, but unpredictable performance |
Întrebări frecvente
Does Docker affect my site's speed?
No. Containers run natively on the Linux kernel, with no hardware virtualisation layer, so the overhead is negligible. Site speed is determined by code, caching and network — and resource isolation actually makes it more predictable than on shared hosting.
Why not classic cPanel hosting, like with WordPress?
On classic shared hosting, hundreds of sites share the same server with no strict limits: a busy neighbour slows you down, and a compromised one can affect you. On 4buildsite, the published site is served statically — no per-site code to slow down or compromise — and the platform services run isolated in containers, with zero-downtime publishes. Things cPanel does not offer.
What happens if a publish breaks my site?
The previously published version still exists, intact, so going back takes seconds: the delivery service switches back to it. The shop is never stuck on a broken version, and the data in the database stays untouched.
Do I need to know Docker to use 4buildsite?
No. Containerisation is fully managed by the platform: you build your site in the visual editor at panel.4buildsite.net and publish. Docker works "under the hood" — you get the benefits (isolation, rollback, zero downtime) with no configuration at all.
Is Docker safe for an online shop?
Yes. Process and filesystem isolation limits the blast radius of an incident to that container, not the whole server. Card data never passes through the container anyway — payments are processed by Stripe, on Stripe's certified infrastructure.
Is Docker the same thing as a virtual machine?
No. A virtual machine virtualises full hardware and runs its own operating system — it boots in minutes and consumes a lot. A container shares the host kernel: it starts in seconds, uses a fraction of the resources and keeps the application isolated.