Interactive mode is not yet supported on Windows (docker-compose run db sh)

Hello Everybody!!! I got this issue. I could do docker-compose build and apparently I could install all

docker-compose build
The FINKOK_USERNAME variable is not set. Defaulting to a blank string.
The DJANGO_DEBUG variable is not set. Defaulting to a blank string.
The PAC_GATEWAY_ENCRYPTION_KEY variable is not set. Defaulting to a blank string.
The FINKOK_PASSWORD variable is not set. Defaulting to a blank string.
The FINKOK_APP_URL variable is not set. Defaulting to a blank string.
The MAILGUN_API_KEY variable is not set. Defaulting to a blank string.
redis uses an image, skipping
db uses an image, skipping
Building web
Step 1 : FROM python:3.5-alpine
 ---> d1128d077f32
Step 2 : MAINTAINER Sebastián Magrí <sebastian@uakami.com>
 ---> Using cache
 ---> 5ec26ff57103
Step 3 : ARG DJANGO_DEBUG
 ---> Using cache
 ---> 52087671134c
Step 4 : ENV PYTHONUNBUFFERED 1
 ---> Using cache
 ---> e3703f121655
Step 5 : RUN apk update     && apk add          postgresql-dev          ca-certificates          openssl          gcc          libc-dev          libxml2-dev          libxslt-dev          libffi-dev          cairo-dev          pango-dev          jpeg-dev          zlib-dev          gdk-pixbuf          ttf-dejavu     && cp /lib/libz.so /usr/lib     && cp /lib/libz.a /usr/lib     && pip install -U pip setuptools     && rm -rf /var/cache/apk/*
 ---> Using cache
 ---> 4898eb7e684d
Step 6 : ADD . /app
 ---> Using cache
 ---> 1e9b9b23a866
Step 7 : WORKDIR /app
 ---> Using cache
 ---> 387cb3a5a1f8
Step 8 : RUN sh /app/docker/prepare.sh
 ---> Running in 7f047d6525dd
+ prepare
+ cp pac_gateway/settings/local_docker.py pac_gateway/settings/local.py
+ [[ True = True ]]
+ echo requirements/development.txt
+ reqs=requirements/development.txt
+ pip install -U pip setuptools -r requirements/development.txt
Requirement already up-to-date: pip in /usr/local/lib/python3.5/site-packages
Collecting setuptools
  Downloading setuptools-27.3.0-py2.py3-none-any.whl (467kB)
Collecting Django==1.10 (from -r requirements/production.txt (line 1))
  Downloading Django-1.10-py2.py3-none-any.whl (6.8MB)
Collecting psycopg2 (from -r requirements/production.txt (line 2))
  Downloading psycopg2-2.6.2.tar.gz (376kB)
Collecting gunicorn (from -r requirements/production.txt (line 3))
  Downloading gunicorn-19.6.0-py2.py3-none-any.whl (114kB)
Collecting eventlet (from -r requirements/production.txt (line 4))
  Downloading eventlet-0.19.0-py2.py3-none-any.whl (138kB)
Collecting django-anymail==0.4.2 (from -r requirements/production.txt (line 5))
  Downloading django-anymail-0.4.2.tar.gz
Collecting django-redis (from -r requirements/production.txt (line 6))
  Downloading django-redis-4.5.0.tar.gz (53kB)
Collecting django-rest-swagger==2.0.5 (from -r requirements/production.txt (line 7))
  Downloading django_rest_swagger-2.0.5-py2.py3-none-any.whl (746kB)
Collecting djangorestframework==3.4.6 (from -r requirements/production.txt (line 8))
  Downloading djangorestframework-3.4.6-py2.py3-none-any.whl (706kB)
Collecting djangorestframework-bulk==0.2.1 (from -r requirements/production.txt (line 9))
  Downloading djangorestframework-bulk-0.2.1.tar.gz
Collecting django-filter==0.13.0 (from -r requirements/production.txt (line 10))
  Downloading django_filter-0.13.0-py2.py3-none-any.whl
Collecting django-cors-headers==1.1.0 (from -r requirements/production.txt (line 11))
  Downloading django-cors-headers-1.1.0.tar.gz
Collecting django-daterange-filter==1.3.0 (from -r requirements/production.txt (line 12))
  Downloading django-daterange-filter-1.3.0.tar.gz
Collecting cryptography==1.4 (from -r requirements/production.txt (line 13))
  Downloading cryptography-1.4.tar.gz (399kB)
Collecting jsonschema==2.5.1 (from -r requirements/production.txt (line 14))
  Downloading jsonschema-2.5.1-py2.py3-none-any.whl
Collecting zeep==0.6.0 (from -r requirements/production.txt (line 15))
  Downloading zeep-0.6.0-py2.py3-none-any.whl (47kB)
Collecting WeasyPrint==0.30 (from -r requirements/production.txt (line 16))
  Downloading WeasyPrint-0.30-py2.py3-none-any.whl (258kB)
Collecting Pillow==3.3.0 (from -r requirements/production.txt (line 17))
  Downloading Pillow-3.3.0.zip (10.8MB)
Collecting qrcode==5.3 (from -r requirements/production.txt (line 18))
  Downloading qrcode-5.3-py2.py3-none-any.whl
Collecting num2words==0.5.3 (from -r requirements/production.txt (line 19))
  Downloading num2words-0.5.3.tar.gz
Collecting django-debug-toolbar (from -r requirements/development.txt (line 2))
  Downloading django_debug_toolbar-1.5-py2.py3-none-any.whl (204kB)
Collecting ipython (from -r requirements/development.txt (line 3))
  Downloading ipython-5.1.0-py3-none-any.whl (747kB)
Collecting greenlet>=0.3 (from eventlet->-r requirements/production.txt (line 4))
  Downloading greenlet-0.4.10.zip (82kB)
Collecting requests>=2.4.3 (from django-anymail==0.4.2->-r requirements/production.txt (line 5))
  Downloading requests-2.11.1-py2.py3-none-any.whl (514kB)
Collecting six (from django-anymail==0.4.2->-r requirements/production.txt (line 5))
  Downloading six-1.10.0-py2.py3-none-any.whl
Collecting redis>=2.10.0 (from django-redis->-r requirements/production.txt (line 6))
  Downloading redis-2.10.5-py2.py3-none-any.whl (60kB)
Collecting simplejson (from django-rest-swagger==2.0.5->-r requirements/production.txt (line 7))
  Downloading simplejson-3.8.2.tar.gz (76kB)
Collecting openapi-codec (from django-rest-swagger==2.0.5->-r requirements/production.txt (line 7))
  Downloading openapi-codec-1.0.0.tar.gz
Collecting coreapi (from django-rest-swagger==2.0.5->-r requirements/production.txt (line 7))
  Downloading coreapi-2.0.7.tar.gz
Collecting idna>=2.0 (from cryptography==1.4->-r requirements/production.txt (line 13))
  Downloading idna-2.1-py2.py3-none-any.whl (54kB)
Collecting pyasn1>=0.1.8 (from cryptography==1.4->-r requirements/production.txt (line 13))
  Downloading pyasn1-0.1.9-py2.py3-none-any.whl
Collecting cffi>=1.4.1 (from cryptography==1.4->-r requirements/production.txt (line 13))
  Downloading cffi-1.8.3.tar.gz (403kB)
Collecting pytz (from zeep==0.6.0->-r requirements/production.txt (line 15))
  Downloading pytz-2016.6.1-py2.py3-none-any.whl (481kB)
Collecting defusedxml>=0.4.1 (from zeep==0.6.0->-r requirements/production.txt (line 15))
  Downloading defusedxml-0.4.1.tar.gz (48kB)
Collecting isodate>=0.5.4 (from zeep==0.6.0->-r requirements/production.txt (line 15))
  Downloading isodate-0.5.4.tar.gz
Collecting lxml>=3.0.0 (from zeep==0.6.0->-r requirements/production.txt (line 15))
  Downloading lxml-3.6.4.tar.gz (3.7MB)
Collecting cssselect>=0.6 (from WeasyPrint==0.30->-r requirements/production.txt (line 16))
  Downloading cssselect-0.9.2-py2.py3-none-any.whl
Collecting cairocffi>=0.5 (from WeasyPrint==0.30->-r requirements/production.txt (line 16))
  Downloading cairocffi-0.7.2.tar.gz (75kB)
Collecting html5lib>=0.999999999 (from WeasyPrint==0.30->-r requirements/production.txt (line 16))
  Downloading html5lib-0.999999999.tar.gz (245kB)
Collecting CairoSVG>=1.0.20 (from WeasyPrint==0.30->-r requirements/production.txt (line 16))
  Downloading CairoSVG-1.0.22.tar.gz
Collecting Pyphen>=0.8 (from WeasyPrint==0.30->-r requirements/production.txt (line 16))
  Downloading Pyphen-0.9.4-py2.py3-none-any.whl (1.9MB)
Collecting tinycss==0.3 (from WeasyPrint==0.30->-r requirements/production.txt (line 16))
  Downloading tinycss-0.3.tar.gz (72kB)
Collecting sqlparse>=0.2.0 (from django-debug-toolbar->-r requirements/development.txt (line 2))
  Downloading sqlparse-0.2.1.tar.gz (53kB)
Collecting traitlets>=4.2 (from ipython->-r requirements/development.txt (line 3))
  Downloading traitlets-4.3.0-py2.py3-none-any.whl (74kB)
Collecting pickleshare (from ipython->-r requirements/development.txt (line 3))
  Downloading pickleshare-0.7.4-py2.py3-none-any.whl
Collecting pygments (from ipython->-r requirements/development.txt (line 3))
  Downloading Pygments-2.1.3-py2.py3-none-any.whl (755kB)
Collecting simplegeneric>0.8 (from ipython->-r requirements/development.txt (line 3))
  Downloading simplegeneric-0.8.1.zip
Collecting prompt-toolkit<2.0.0,>=1.0.3 (from ipython->-r requirements/development.txt (line 3))
  Downloading prompt_toolkit-1.0.7-py3-none-any.whl (237kB)
Collecting decorator (from ipython->-r requirements/development.txt (line 3))
  Downloading decorator-4.0.10-py2.py3-none-any.whl
Collecting pexpect; sys_platform != "win32" (from ipython->-r requirements/development.txt (line 3))
  Downloading pexpect-4.2.1-py2.py3-none-any.whl (55kB)
Collecting itypes (from coreapi->django-rest-swagger==2.0.5->-r requirements/production.txt (line 7))
  Downloading itypes-1.1.0.tar.gz
Collecting uritemplate (from coreapi->django-rest-swagger==2.0.5->-r requirements/production.txt (line 7))
  Downloading uritemplate-3.0.0-py2.py3-none-any.whl
Collecting pycparser (from cffi>=1.4.1->cryptography==1.4->-r requirements/production.txt (line 13))
  Downloading pycparser-2.14.tar.gz (223kB)
Collecting webencodings (from html5lib>=0.999999999->WeasyPrint==0.30->-r requirements/production.txt (line 16))
  Downloading webencodings-0.5.tar.gz
Collecting ipython-genutils (from traitlets>=4.2->ipython->-r requirements/development.txt (line 3))
  Downloading ipython_genutils-0.1.0-py2.py3-none-any.whl
Collecting wcwidth (from prompt-toolkit<2.0.0,>=1.0.3->ipython->-r requirements/development.txt (line 3))
  Downloading wcwidth-0.1.7-py2.py3-none-any.whl
Collecting ptyprocess>=0.5 (from pexpect; sys_platform != "win32"->ipython->-r requirements/development.txt (line 3))
  Downloading ptyprocess-0.5.1-py2.py3-none-any.whl
Installing collected packages: setuptools, Django, psycopg2, gunicorn, greenlet, eventlet, requests, six, django-anymail, redis, django-redis, simplejson, itypes, uritemplate, coreapi, openapi-codec, django-rest-swagger, djangorestframework, djangorestframework-bulk, django-filter, django-cors-headers, django-daterange-filter, idna, pyasn1, pycparser, cffi, cryptography, jsonschema, pytz, defusedxml, isodate, lxml, zeep, cssselect, cairocffi, webencodings, html5lib, CairoSVG, Pyphen, tinycss, WeasyPrint, Pillow, qrcode, num2words, sqlparse, django-debug-toolbar, ipython-genutils, decorator, traitlets, pickleshare, pygments, simplegeneric, wcwidth, prompt-toolkit, ptyprocess, pexpect, ipython
  Found existing installation: setuptools 27.2.0
    Uninstalling setuptools-27.2.0:
      Successfully uninstalled setuptools-27.2.0
  Running setup.py install for psycopg2: started
    Running setup.py install for psycopg2: finished with status 'done'
  Running setup.py install for greenlet: started
    Running setup.py install for greenlet: finished with status 'done'
  Running setup.py install for django-anymail: started
    Running setup.py install for django-anymail: finished with status 'done'
  Running setup.py install for django-redis: started
    Running setup.py install for django-redis: finished with status 'done'
  Running setup.py install for simplejson: started
    Running setup.py install for simplejson: finished with status 'done'
  Running setup.py install for itypes: started
    Running setup.py install for itypes: finished with status 'done'
  Running setup.py install for coreapi: started
    Running setup.py install for coreapi: finished with status 'done'
  Running setup.py install for openapi-codec: started
    Running setup.py install for openapi-codec: finished with status 'done'
  Running setup.py install for djangorestframework-bulk: started
    Running setup.py install for djangorestframework-bulk: finished with status 'done'
  Running setup.py install for django-cors-headers: started
    Running setup.py install for django-cors-headers: finished with status 'done'
  Running setup.py install for django-daterange-filter: started
    Running setup.py install for django-daterange-filter: finished with status 'done'
  Running setup.py install for pycparser: started
    Running setup.py install for pycparser: finished with status 'done'
  Running setup.py install for cffi: started
    Running setup.py install for cffi: finished with status 'done'
  Running setup.py install for cryptography: started
    Running setup.py install for cryptography: finished with status 'done'
  Running setup.py install for defusedxml: started
    Running setup.py install for defusedxml: finished with status 'done'
  Running setup.py install for isodate: started
    Running setup.py install for isodate: finished with status 'done'
  Running setup.py install for lxml: started
    Running setup.py install for lxml: still running...
    Running setup.py install for lxml: finished with status 'done'
  Running setup.py install for cairocffi: started
    Running setup.py install for cairocffi: finished with status 'done'
  Running setup.py install for webencodings: started
    Running setup.py install for webencodings: finished with status 'done'
  Running setup.py install for html5lib: started
    Running setup.py install for html5lib: finished with status 'done'
  Running setup.py install for CairoSVG: started
    Running setup.py install for CairoSVG: finished with status 'done'
  Running setup.py install for tinycss: started
    Running setup.py install for tinycss: finished with status 'done'
  Running setup.py install for Pillow: started
    Running setup.py install for Pillow: finished with status 'done'
  Running setup.py install for num2words: started
    Running setup.py install for num2words: finished with status 'done'
  Running setup.py install for sqlparse: started
    Running setup.py install for sqlparse: finished with status 'done'
  Running setup.py install for simplegeneric: started
    Running setup.py install for simplegeneric: finished with status 'done'
Successfully installed CairoSVG-1.0.22 Django-1.10 Pillow-3.3.0 Pyphen-0.9.4 WeasyPrint-0.30 cairocffi-0.7.2 cffi-1.8.3 coreapi-2.0.7 cryptography-1.4 cssselect-0.9.2 decorator-4.0.10 defusedxml-0.4.1 django-anymail-0.4.2 django-cors-headers-1.1.0 django-daterange-filter-1.3.0 django-debug-toolbar-1.5 django-filter-0.13.0 django-redis-4.5.0 django-rest-swagger-2.0.5 djangorestframework-3.4.6 djangorestframework-bulk-0.2.1 eventlet-0.19.0 greenlet-0.4.10 gunicorn-19.6.0 html5lib-0.999999999 idna-2.1 ipython-5.1.0 ipython-genutils-0.1.0 isodate-0.5.4 itypes-1.1.0 jsonschema-2.5.1 lxml-3.6.4 num2words-0.5.3 openapi-codec-1.0.0 pexpect-4.2.1 pickleshare-0.7.4 prompt-toolkit-1.0.7 psycopg2-2.6.2 ptyprocess-0.5.1 pyasn1-0.1.9 pycparser-2.14 pygments-2.1.3 pytz-2016.6.1 qrcode-5.3 redis-2.10.5 requests-2.11.1 setuptools-27.3.0 simplegeneric-0.8.1 simplejson-3.8.2 six-1.10.0 sqlparse-0.2.1 tinycss-0.3 traitlets-4.3.0 uritemplate-3.0.0 wcwidth-0.1.7 webencodings-0.5 zeep-0.6.0
 ---> a63b90f48e41
Removing intermediate container 7f047d6525dd
Step 9 : EXPOSE 8000
 ---> Running in 905729043bd3
 ---> da1432d7c500
Removing intermediate container 905729043bd3
Step 10 : CMD sh /app/docker/run.sh
 ---> Running in 4b289de744c5
 ---> 1202f83f0761
Removing intermediate container 4b289de744c5
Successfully built 1202f83f0761

Then I try to start up with this docker-compose up -d and git bash show me this

 docker-compose up -d
The FINKOK_USERNAME variable is not set. Defaulting to a blank string.
The DJANGO_DEBUG variable is not set. Defaulting to a blank string.
The PAC_GATEWAY_ENCRYPTION_KEY variable is not set. Defaulting to a blank string.
The FINKOK_PASSWORD variable is not set. Defaulting to a blank string.
The FINKOK_APP_URL variable is not set. Defaulting to a blank string.
The MAILGUN_API_KEY variable is not set. Defaulting to a blank string.
ambitpacgateway_db_1 is up-to-date
ambitpacgateway_redis_1 is up-to-date
Recreating ambitpacgateway_web_1

When I try to forward with the project with this docker-compose run db sh

This is what I got

$ docker-compose run db sh
The FINKOK_USERNAME variable is not set. Defaulting to a blank string.
The DJANGO_DEBUG variable is not set. Defaulting to a blank string.
The PAC_GATEWAY_ENCRYPTION_KEY variable is not set. Defaulting to a blank string.
The FINKOK_PASSWORD variable is not set. Defaulting to a blank string.
The FINKOK_APP_URL variable is not set. Defaulting to a blank string.
The MAILGUN_API_KEY variable is not set. Defaulting to a blank string.
Interactive mode is not yet supported on Windows.
Please pass the -d flag when using `docker-compose run`.

And I don’t know what can I do on that. I already created a postgrsql database and if I can fix the mistake the next part of it will be migrate to finally test the project as well.

Any suggestions!? Thanks By The Way (thumbups)

1 Like