Skip to content
This repository has been archived by the owner on Aug 12, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants