user1685095
user1685095

Reputation: 6121

Is there a way to run separate set of processes with docker dynamically?

So suppose I have a machine and I need this machine to be able to work in three modes: A, B, C.

In mode A it should run one set of processes. In mode B - another set of processes. And in mode C it should run both sets.

The modes should be chosen dynamically from the web interface.

Upvotes: 0

Views: 51

Answers (1)

user2915097
user2915097

Reputation: 32156

Install programs needed by A and B, and supervisor

http://docs.docker.com/articles/using_supervisord/

tweak supervisor, so that according to some event, presence of file somewhere, value of an environment variable or any other event, you run either A, B, or C.

Upvotes: 1

Related Questions