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

Data container crashes #3

Closed
bradddd opened this issue Sep 16, 2015 · 2 comments
Closed

Data container crashes #3

bradddd opened this issue Sep 16, 2015 · 2 comments

Comments

@bradddd
Copy link

bradddd commented Sep 16, 2015

Ultimately during the docker-compose up call, the data container exits and causes the other 3 containers to shutdown:

orchestratingdocker_data_1 exited with code 0
Gracefully stopping... (press Ctrl+C again to force)
Stopping orchestratingdocker_nginx_1... done
Stopping orchestratingdocker_web_1... done
Stopping orchestratingdocker_postgres_1... done
Stopping orchestratingdocker_data_1... done

I haven't altered any of the code from the repo. It works fine if I comment out the data container and the relevant lines from the postgres container.

I'm on a mac. Here are the versions if it helps:

$ docker-machine --version
docker-machine version 0.4.1 (e2c88d6)
$ docker -v
Docker version 1.8.1, build d12ea79
$ docker-compose --version
docker-compose version: 1.4.0
@bradddd
Copy link
Author

bradddd commented Oct 9, 2015

So I think my diagnosis was wrong. The data container definitely exits 0, but I don't think that's an issue per se. I went back to this and tried it in Ubuntu 14.04, and I'm running into the same issue.

I was able to get it working though. If I change the restart value for the data container to no, it works.

Anyone have any idea why this is? Is it working for people with restart: always?

@mjhea0
Copy link
Contributor

mjhea0 commented Nov 1, 2015

updated! changed restart to no. thanks!

@mjhea0 mjhea0 closed this as completed Nov 1, 2015
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