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

Docker Compose exitable or One time containers #1792

Closed
tarunlalwani opened this issue Jul 30, 2015 · 4 comments
Closed

Docker Compose exitable or One time containers #1792

tarunlalwani opened this issue Jul 30, 2015 · 4 comments

Comments

@tarunlalwani
Copy link

Hello,

I am in this situation where I want to run one of the image as a part of docker-compose, but that image should do it work and then exit. But as soon as that container exits the whole composition is taken down.

Is there a way to allow running containers which are allowed to exit from a composition once the work is done?

Regards,
Tarun

@aanand
Copy link

aanand commented Jul 30, 2015

Fixed in #1754.

@aanand aanand closed this as completed Jul 30, 2015
@tarunlalwani
Copy link
Author

Is this released or will be in next version?

@aanand
Copy link

aanand commented Jul 30, 2015

It will be in Compose 1.5.0, so not for a while. For now, you can work around it by using docker-compose up -d && docker-compose logs instead of docker-compose up.

@tarunlalwani
Copy link
Author

Thanks @aanand, I didn't earlier realise this problem is not faced when using -d. I thought even -d would work the same way.

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

No branches or pull requests

2 participants