-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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: don't stop containers when fig up
exits
#741
Comments
Just to chime in; I only use fig with Breaking BC is unfortunate yes. Any thoughts how to not run in the background in the new situation? ( |
I was thinking, if there is support for this, of just waiting until the next major release, and breaking BC. |
I like it. I think it's less surprising (especially the "stopping" part). One nice addition (separate from this one) is to automatically show the output of |
I like that, adding it to the list |
Agreed that the current behaviour is a bit fiddly. I'm fine with the idea of not shutting down on Ctrl-C, I think - maybe instead we can output a message along the lines of:
As for defaulting to Finally, doing a |
Sounds like a plan, I know docker did something like that some time ago, not sure how much response they got? Also, still the option I mentioned in my first comment; specify wether or not the project should run background inside
Yes, that was something I wasn't sure of. Being able to verify is useful, especially for those cases. Was even thinking of having a "live" updating fig ps (if possible), but that would require user-input to dismiss it, so not sure if that's handy. |
+1 on this.... it is odd that is there a technical reason why it's not possible to make |
@anentropic that However, for the reasons @dnephin lists in the proposal, it's ended up being a bit confusing. |
@aanand I think it should behave the same re errors whether you after all, if you don't use |
I like the idea of having Otherwise, I believe that decoupling the behavior of fig stopping from the containers will lead to surprises itself and make fig less helpful for init scripts. Theoretically systemd should be able to handle it with separate start and stop scripts, but it is relatively more complicated... As far as upstart goes (yes it's going away, but it's not gone yet), after several hours I still haven't gotten upstart to play nice with a start command of Simply using a My two cents - people probably fall on both sides of the divide. P.S. I have not experienced issues with |
I have been using it both ways and I agree with @dnephin that basically the most effective way for me so far has been to start things backgrounded and run fig logs as soon as they all start. Though honestly the only reason I do this is so that I can do things like bring down containers to do things like wipe a data container, simulate a container failure, etc as single container failure leads to full stack going down which is timely and unnecessary. My 2 cents on how fig up should act: |
Yes, please! |
+1 for |
Fixed #1754, will be in the 1.5 release, we went with the second option |
You can't add "-ti" if you run docker by "docker run" command. |
With the current behaviour of
fig up
all container are stopped when a single container exits. This has caused some confusion.fig.yml
contains any data volume containers (anything that would exit immediately)fig up
is entirely useless, a-d
must be specified every timefig stop <some service>
in a different terminal, it causes all containers to stop (which is not intuitive).I propose the default for
fig up
change. Some ideas:-d
, and provide a flag to allow the old behaviourfig ps
as the output after starting containers, to show that all containers have started properly (or not) (credit @thaJeztah)I only ever use
fig up
with-d
, and I wonder if others are using it this way. It seems like for CI you would have to, and for a development environment you may want to start/stop containers independently, so you'd still need-d
.The text was updated successfully, but these errors were encountered: