3 ms·
How do you deploy updates to the docker containers without downtime?
by joevandyk 9y ago
How do you deploy updates to the docker containers without downtime?
- xet7 9y agoFor example with Docker Swarm: http://container-solutions.com/rolling-updates-with-docker-swarm/ http://container-solutions.com/rolling-updates-with-docker-s... Some companies have GitLab workflows that also deploy successfull builds automatically, checks are there problems in that deploy, and rollbacks automatically when needed: https://twit.tv/shows/floss-weekly/episodes/473?autostart=false https://twit.tv/shows/floss-weekly/episodes/473?autostart=fa... Such workflows could also be made with for example: - Huginn https://github.com/huginn/huginn https://github.com/huginn/huginn - Flogo http://www.flogo.io http://www.flogo.io
- sheraz 9y agoWell, the trick is that I have downtime but it last for only a few seconds. Docker pull <image name> Docker container stop <container name> Docker run <opts> <image name> This does result in a “hiccup” for any clients wanting to connect. They will see a 502 gateway error at which point they should retry with exponential backoff. And that is the trick — make the client retry with the exponential backoff. Document it as the expected behavior when that event arises. And for our traffic patterns this is acceptable.