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

Send docker-compose to daemon mode without restart #3936

Closed
augnustin opened this issue Sep 12, 2016 · 5 comments
Closed

Send docker-compose to daemon mode without restart #3936

augnustin opened this issue Sep 12, 2016 · 5 comments

Comments

@augnustin
Copy link

As from this SO question:

I like to docker-compose up first to check that everything started correctly.

Once everything's fine, I'd like to being able to send the command to daemon mode, without having to docker-compose stop and docker-compose -d up (two steps + service interruption).

@shin-
Copy link

shin- commented Sep 12, 2016

Maybe you could run docker-compose -d up, then docker-compose logs to check the status of your app. logs can then be exited at any time without affecting your application.

@augnustin
Copy link
Author

Indeed, but since the -d option is not default, I tend to forget about it in the first place and then find myself stuck.

It is not so bad, but I reckon the feature would make sense, wouldn't it?

There are reasons for Unix's Ctrl-Z to have been created

@shin-
Copy link

shin- commented Sep 14, 2016

What about Ctrl-Z, bg and maybe disown, then? It seems to me UNIX already gives you all the tools you need in that case.

@augnustin
Copy link
Author

I tried Ctrl-z, bg but could not exit the ssh session, receiving There are stopped jobs. I don't know about disown though, I'll try it out.

@shin- shin- closed this as completed Oct 17, 2016
@TristanCP
Copy link

So, can you confirm disown does the trick without side effects ?

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

No branches or pull requests

3 participants