Open dave-tucker opened 8 years ago
Not gonna lie, this is the first thing I thought of when I saw this project.
Thinking about it more, "start" and "stop" should be different command blocks. Otherwise, if you have containers A, B, C and B is already started, flipping the lever will simply invert the states (A and C are running, B is stopped)
We could do this as follows:
/docker
command to start and/or stop a containerWith the latter, a circuit such as this one can be used to implement something similar to Docker Compose :)
A big benefit in my book is that we can vary container start order by using more inverters