question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

docker-compose -f local.yml up fails on windows

See original GitHub issue

What happened?

I am trying to start a new project on windows using docker. Here are my settings

cookiecutter https://github.com/pydanny/cookiecutter-django
You've downloaded C:\Users\srao.cookiecutters\cookiecutter-django before. Is it okay to delete and re-download it? [yes]: yes
project_name [My Awesome Project]:
project_slug [my_awesome_project]:
description [Behold My Awesome Project!]:
author_name [Daniel Roy Greenfeld]:
domain_name [example.com]:
email [daniel-roy-greenfeld@example.com]:
version [0.1.0]:
Select open_source_license:
1 - MIT
2 - BSD
3 - GPLv3
4 - Apache Software License 2.0
5 - Not open source
Choose from 1, 2, 3, 4, 5 (1, 2, 3, 4, 5) [1]:
timezone [UTC]:
windows [n]: y
use_pycharm [n]:
use_docker [n]: y
Select postgresql_version:
1 - 10.5
2 - 10.4
3 - 10.3
4 - 10.2
5 - 10.1
6 - 9.6
7 - 9.5
8 - 9.4
Choose from 1, 2, 3, 4, 5, 6, 7, 8 (1, 2, 3, 4, 5, 6, 7, 8) [1]:
Select js_task_runner:
1 - None
2 - Gulp
Choose from 1, 2 (1, 2) [1]:
Select cloud_provider:
1 - AWS
2 - GCE
Choose from 1, 2 (1, 2) [1]:
custom_bootstrap_compilation [n]:
use_compressor [n]:
use_celery [n]:
use_mailhog [n]: y
use_sentry [n]:
use_whitenoise [n]:
use_heroku [n]:
use_travisci [n]:
keep_local_envs_in_vcs [y]:
debug [n]:
[SUCCESS]: Project initialized, keep up the good work!

The build succeeds with docker-compose -f local.yml build and the django_1 container fails after I execute docker-compose -f local.yml up The error is

django_1 | Running on http://0.0.0.0:8000/ (Press CTRL+C to quit)
django_1 | Restarting with stat
': No such file or directorycute 'python
my_awesome_project_django_1 exited with code 127

I am on Docker version 18.09.2, build 6247962 and docker-compose version 1.23.2, build 1110ad01 Any ideas on what I am doing wrong?

What should’ve happened instead?

Steps to reproduce

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:16 (16 by maintainers)

github_iconTop GitHub Comments

2reactions
demestavcommented, May 21, 2019

I think this maybe is related to werkzeug. Check this discussion https://github.com/pallets/werkzeug/issues/1482 . And a possible (?) fix https://github.com/pallets/werkzeug/issues/1482#issuecomment-477437009

0reactions
shireenraocommented, May 28, 2019

I think It is coming from the django docker image.

Read more comments on GitHub >

github_iconTop Results From Across the Web

docker-compose is unstable using Docker Desktop and WSL2
Run these commands in a new Terminal Windows > the error still shows up; Run these commands after restarting docker > the error...
Read more >
docker compose prompted error: no configuration file provided
The problem was with docker-compose.yml file. I saved it from Visual Studio Code as a text file though OS determined it like a...
Read more >
Overview of docker compose CLI
You can use the -f flag to specify a path to a Compose file that is not located in the current directory, either...
Read more >
docker compose up - Docker Documentation
The docker compose up command aggregates the output of each container (like ... If the process encounters an error, the exit code for...
Read more >
Share Compose configurations between files and projects
How to use Docker Compose's extends keyword to share configuration between files and projects.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found