-
Notifications
You must be signed in to change notification settings - Fork 9.7k
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
Vote container not starting + fix #134
Comments
Strange, I can't seem to reproduce the error on a fresh install. |
this should be started with docker stack deploy -c docker-stack.yml app |
@ProsperWare : thanks for the reply, but: I was under the impression that you can use any of the common methods to start the application (compose, stack, k8s, etc). So when I have an issue using 'docker compose', saying I need to use 'docker stack deploy' surprises me... especially when the documentation clearly states you can use either method. Anyway: I had an issue, fixed it, thought I'd share it, but couldn't reproduce it myself on a fresh install. I'll close the case. |
I had the same issue on Docker for Windows and I fixed it with two changes:
|
I'm unable to fix my setup, I've converted windows style line ending to unix style line ending, and added
any ideas? |
|
do I need to install that on the host machine? |
No... strike my comment... I was stupid 🤭 Can you post the first few lines of app.py? Another option: remove everything and start from scratch. Unless you've made significant changes. |
In the
I think should add the shebang and make an pull request 😏 |
hmm... looks ok. Strange. And you're using the original Dockerfile to build 'vote'? I mean: it 's still using python:2.7-alpine? |
Yes... I did not change the Dockerfile, more strangly, if I compile and build it as an single image, it runs smoothly without any warning. even with the shebang removed, I think it is an docker-compose issue. |
Description
Vote container not starting. Running latest example-voting-app on up-to-date Docker Desktop on a Mac
Steps to reproduce the issue, if relevant:
Describe the results you received:
"docker-compose ps" shows "Exit 1" on vote_1 container. Rest is Up:
'docker-compose logs' shows the following error:
Describe the results you expected:
Well... Up instead of Exit 1 😎
Additional information you deem important (e.g. issue happens only occasionally):
I've fixed it... see below.
Output of
docker version
:Output of
docker info
:Additional environment details (AWS, Docker for Mac, Docker for Windows, VirtualBox, physical, etc.):
Docker Desktop on macOS 10.14.4.
The Fix
I've added a 'shebang' to 'example-voting-app/vote/app.py':
Now it runs like expected:
The text was updated successfully, but these errors were encountered: