docker / dockercraft

Docker + Minecraft = Dockercraft
Apache License 2.0
7.19k stars 389 forks source link

Proposal: Make container start/stop automatable using Redstone #32

Open dave-tucker opened 8 years ago

dave-tucker commented 8 years ago

We could do this as follows:

With the latter, a circuit such as this one can be used to implement something similar to Docker Compose :)

screenshot 2015-11-23 13 10 10

A big benefit in my book is that we can vary container start order by using more inverters

msmollin commented 8 years ago

Not gonna lie, this is the first thing I thought of when I saw this project.

dave-tucker commented 8 years ago

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)