V
V
Vi2017-09-08 12:23:00
linux
Vi, 2017-09-08 12:23:00

Docker self-killing container (romeo and juliet)?

How to make it so that when starting containers, if one falls, then the second one stops?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
I
Ivan Koryukov, 2017-09-08
@MadridianFox

In general, docker-type systems follow the reverse strategy - if something falls, then it is desirable to automatically raise it again, and all other containers should be ready for this.
However, you can probably make a third container, the only task of which will be to check the status of the first container and stop the second one if necessary.

C
chupasaurus, 2017-09-08
@chupasaurus

The watchdog's function should lie on the application in a dependent container (fall when the dependency is unavailable), the containers themselves are isolated from each other.

R
rustler2000, 2017-09-08
@rustler2000

https://kubernetes.io/docs/concepts/workloads/pods... :D

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question