djangodocker icon indicating copy to clipboard operation
djangodocker copied to clipboard

Missing .env file for Windows support

Open DavidHulsman opened this issue 8 years ago • 2 comments

I forked this project, after finding your name in an image on the "WHAT’S NEW IN PYCHARM 2017.2" page on Jetbrains.com, because I wanted to finally get Docker working on my Windows 10 laptop, and I found this small bug (?).

I was missing a file called .env. with the next content:

COMPOSE_CONVERT_WINDOWS_PATHS=1
COMPOSE_PROJECT_NAME=django-docker

Strangely, if I only had the first line, Docker would not deploy and end with the next error:

Container [Name:/djangodocker_web_1; ID:c7eaa9e846116f0384aff1c0815b0d021f892f3e3cb5ec6fa68a8d7f16acd71f]: is not started
Failed to deploy 'Compose:  docker-compose.yml': Some services/containers not started

This seems to be a Windows-only bug.

DavidHulsman avatar Jul 26 '17 23:07 DavidHulsman

Hi David!

You were a little early in finding this repo, as I'm preparing a blog post to be released next week with this code. Are you using native Docker for Windows, or using Docker Machine?

ErnstHaagsman avatar Jul 27 '17 09:07 ErnstHaagsman

Docker Machine, as I had some other trouble getting native Docker to work.

PS: Glad to hear a blog post is coming!

DavidHulsman avatar Jul 27 '17 11:07 DavidHulsman