How to recreate docker containers for single service synchronize? How to recreate docker containers for single service synchronize? docker docker

How to recreate docker containers for single service synchronize?


Unfortunately docker-compose don't have this feature, but Docker Swarm does!

Just init your docker machine to swarm cluster with

docker swarm init

and then reconfigure your compose file and add rolling updates like so:

deploy:  replicas: 2  update_config:    parallelism: 2    delay: 10s    order: stop-first