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

Cannot install cookiecutter-django with docker on Windows 10 #510

Closed
sakhmedbayev opened this issue Mar 31, 2016 · 1 comment
Closed

Cannot install cookiecutter-django with docker on Windows 10 #510

sakhmedbayev opened this issue Mar 31, 2016 · 1 comment

Comments

@sakhmedbayev
Copy link

I tried to follow this post to install cookiecutter-django with docker on windows.

"docker-compose ps" shows that two containers are running as follow:

test_django_1 Exit 2 (State)
test_postgres_1 Up (State)

As you can see the state for first container is "Exit 2". I consulted with other folks, they said that it can be an error in Django application. If I tried to run "docker start test_django_1" nothing happens, state for the first container not changing.

"docker logs test_django_1" reveals following info:

python: can't open file '/app/manage.py': [Errno 2] No such file or directory

my dev.yml content as follow:

version: '2'
services:
postgres:
build: ./compose/postgres
volumes:
# If you are using boot2docker, postgres data has to live in the VM for now until #581 is fixed
# for more info see here: boot2docker/boot2docker#581
- /data/dev/test/postgres:/var/lib/postgresql/data
- /data/dev/test/postgres-backups:/backups
environment:
- POSTGRES_USER=test

django:
build:
context: .
dockerfile: Dockerfile-dev
command: python /app/manage.py runserver_plus 0.0.0.0:8000
depends_on:
- postgres
environment:
- POSTGRES_USER=test
volumes:
- .:/app
ports:
- "8000:8000"
links:
- postgres

I am newbie to docker. Can anyone help me to fix this problem?

@jayfk
Copy link
Collaborator

jayfk commented Mar 31, 2016

Your project directory is probably not visible to the virtual machine running your docker deamon, see #414

@jayfk jayfk closed this as completed Apr 8, 2016
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