Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dave-tucker opened this issue Nov 23, 2015 · 2 comments
Open

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

dave-tucker opened this issue Nov 23, 2015 · 2 comments

Comments

@dave-tucker
Copy link
Contributor

We could do this as follows:

  • Populate a "Command Block" with the correct /docker command to start and/or stop a container
  • This block can be activated
    • a) With a button (placed on top of it)
    • b) With redstone

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
Copy link

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

@dave-tucker
Copy link
Contributor Author

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants