-
Notifications
You must be signed in to change notification settings - Fork 85
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
Add command to restart stopped containers and stop running containers #71
Conversation
Good idea! It would be worth offering all three Edit: already suggested in #57 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a few questions; once answered I'll test it out and see if we can also test these behaviors. Also looking forward to @josecanhelp's thoughts.
Thanks for the PR!
…Clean up unneeded commands.
Could we change the command names? This could just be in my brain but… …to me # shows takeout UI, user selects MySQL version.
takeout require mysql
takeout remove mysql
# takeout requires/removes specified version.
takeout require mysql:5.7
takeout remove mysql:5.7 Requiring and removing sits better in my head since now I know to start/stop the containers in my docker dashboard/command line, or as this PR introduces: # shows UI, user selects MySQL version.
takeout start mysql
takeout stop mysql
# starts/stops specified version.
takeout start TO--mysql--<tag>
takeout stop TO--mysql--<tag> P.S. I realize that the meaning of |
@jonsugar You're thinking a little more like a Docker user here. We intentionally called them However.. in the comments a case has been made! Removing a container is just fine, but booting the same container with the exact same settings later is harder if you have to remove it instead of potentially stopping it... at which point it now makes sense again to consider differentiating starting and stopping vs adding and removing. So, now that we're doing that, there's a bit more a Composer-like-ness, but we're also starting it when we add it and stopping when we remove it. This was what I was thinking about last week: takeout add The biggest issue with those is that running them with no parameters feels a bit off-- |
All this said, if we limit this PR to The biggest question here is, what's the most appropriate syntax to use for passing a command into I personally think the volume name is pretty clumsy so I'm inclined to go for container ID. Any thoughts? |
I would use the container ID since that is displayed in the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few notes on the code--thanks!
I'm all for this new command set 👍
It makes much more sense than the actual, whether or not one is familiar with Docker. Thanks! |
Thanks! |
Add commands for users that are not familiar with docker to start a stopped container as well as stop a running container.
issue #68