F
F
Fireproof Cockroach2019-10-25 21:13:08
Docker
Fireproof Cockroach, 2019-10-25 21:13:08

How to properly replace Docker containers after deployment?

I want to try to set up a server where Docker + Traefik will be installed .
Traefik looks at port 80 and resolves subdomains and domains.

But the question arose: how to replace a running container after deployment?
For example: I changed something in it, updated it or something else.
I would be grateful if you tell me which cases you use. If you resolve not with the help of Traefik, but with something else. CI can teach anything, I want to understand how to do it right.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Z
zohan1993, 2019-10-25
@uonick

Zero Downtime Deployments - Docker + Traefik.
https://coderbook.com/@marcus/how-to-do-zero-downt...
Swarm Zero Downtime Updates
https://www.youtube.com/watch?v=dLBGoaMz7dQ
Alternatively - Kubernetes Rolling Update Strategy

S
Saboteur, 2019-10-26
@saboteur_kiev

A new container is raised, traffic is transferred to it, the old container is stopped.
In kubernetes and openshift, there are ready-made tools for this.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question