-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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: Add --up
option to run
#2490
Comments
Interesting idea. It's a shame that we no longer know from looking at the file what services a |
Just wanted to create an issue to discuss this, so thx for creating it :) This basically addresses a big part of what we're missing on CI since 1.5.0 as discussed in #1754. Right now when working with the new Docker networking combined with Compose we need to have 2 I'd like to add that it would be nice if this could be combined with the changes in #2130 for @aanand Is there nothing planned to track dependencies? Or will that happen in the libcompose based Compose? |
@simonvanderveldt see #2682 for discussion, however, I think this proposal is really just a shortcut. It's not new functionality. You can do the same thing today with:
|
@dnephin Seems like this has been adressed with The only thing I think is missing is the |
We could close this issue, but I wouldn't mind keeping it open for a bit to see if there is any interest in it over time. |
I guess we're talking about different things? I'll try to explain what I mean, if anything is unclear or if I'm not making sense just let me know. With The initial argument to This might be related to #2774 if that includes dependencies, but that's about the removal of containers not about stopping them. |
I think there is very little need for that because I actually prefer when each command does just one thing and putting them together with some scripting, instead of having a command do multiple things. I guess that's an argument against adding |
From #2477
If we remove links for networking,
run
will no longer start any "dependent" services. Some users were depending on this functionality to be able to do things with a singlerun
command.From #2474
When we changed the default behaviour of
up
to not exit until all containers have exited, it broke the workflow for some users.To support these kinds of workflows, we might be able to do something like this:
Add an
--up
flag torun
. This flag would tell Compose to start all services in the project before running the one-off container.Combined with proposed
docker-compose down
(#2277) this would allow users to run a testing workflow with only two commands, instead of 4 or 5.The text was updated successfully, but these errors were encountered: