Menu

How a Docker Control Plane Upgrades Itself Without Dying Mid-Restart
📰

How a Docker Control Plane Upgrades Itself Without Dying Mid-Restart

DEV Community: docker·hoagminh·about 6 hours ago
#hm8oCNG4
#devtodocker#devto#dev#container#upgrade
Long article (1092 words) — no AI summary yet.
Reading 0:00
15s threshold

If you build a self-hosted control plane that runs inside Docker, users will eventually ask for a one-click "Upgrade Panel" button.

The naive implementation looks tempting: run docker compose pull && docker compose up -d panel from inside the panel container.

The moment Docker stops the old panel container to recreate it on the new image, the process running the upgrade is killed mid-flight. Nobody is left alive to check whether the new version actually boots, nobody can roll back if a migration fails, and the upgrade job in your database is frozen in running forever.

This is the bootstrap paradox behind control-plane self-upgrades in Nitrobase ( services/upgrade/state-machine.ts and services/upgrade/updater-script.ts ).

Nitrobase has only recently launched and is still in Beta .…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.