ErnstHaagsman / djangodocker

A sample Django project to dockerize
http://blog.jetbrains.com/pycharm/2017/08/using-docker-compose-on-windows-in-pycharm
Other
27 stars 17 forks source link

Missing .env file for Windows support #1

Open DavidHulsman opened 7 years ago

DavidHulsman commented 7 years ago

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.

ErnstHaagsman commented 7 years ago

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?

DavidHulsman commented 7 years ago

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

PS: Glad to hear a blog post is coming!