Thoughts on website ideas, PHP and other tech topics, plus going car-free
Zero-downtime rolling upgrades using CircleCI and Docker Swarm
Categories: Docker

I’ve been keen to move some of my web services from CI to CD recently, and I was keen to see if it could be done using zero-downtime techniques. In other words, I wanted to run a minimum of two instances, to restart each one independently, and then to use a networking system to route around containers that are undergoing an update. It turns out that Docker Swarm has the features I need: replicas, rolling updates and the routing mesh.

My work and documentation are in this repo – as usual, feedback is welcome.


Leave a Reply