Skip to content

Getting Started,  #7

@xtiansimon

Description

@xtiansimon

Just installed Docker to test out your Flask-App Tutorial.
I ran the docker install helloworld test and passed.

Now, I'm in Getting Started and running
docker-compose up --build from the project directory of your project.

Mode                LastWriteTime         Length Name
----                -------------         ------ ----
d-----       2020-04-19     11:19                .git
... all the stuff that's in the clone here...
-a----       2020-04-18     20:08            635 docker-compose.yml

But the process has ended with an error: ERROR: for flaskapp-tutorial_web_1 Cannot create container for service web: status code not OK but 500: {"Message":"Unhandled exception: Access is denied. (Exception Creating flaskapp_db Windows isn't really clear when it comes to 'Access' denied. Am I supposed to build this with Elevated privledges?

PS C:\Users\myuser\...\FlaskApp-Tutorial> docker-compose up --build
Creating network "flaskapp-tutorial_default" with the default driver
Building web
Step 1/10 : FROM python:3.6.1-alpine
3.6.1-alpine: Pulling from library/python
90f4dba627d6: Pull complete                                                                                                                                            19bc0bb0be9f: Pull complete                                                                                                                                            e05eff433916: Pull complete                                                                                                                                            e70196200a87: Pull complete                                                                                                                                            a6d780959950: Pull complete                                                                                                                                            Digest: sha256:0945574465b917d524ce9b748479a286c2ed3c5a97311ac5950464907d4d8b53
Status: Downloaded newer image for python:3.6.1-alpine
 ---> ddd6300d05a3
Step 2/10 : RUN apk add --no-cache tzdata
 ---> Running in b500074b1a3c
fetch http://dl-cdn.alpinelinux.org/alpine/v3.4/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.4/community/x86_64/APKINDEX.tar.gz
(1/1) Installing tzdata (2016d-r0)
Executing busybox-1.24.2-r13.trigger
OK: 34 MiB in 35 packages
Removing intermediate container b500074b1a3c
 ---> d00e474348d2
Step 3/10 : ENV TZ America/Los_Angeles
 ---> Running in 96a59c385ea6
Removing intermediate container 96a59c385ea6
 ---> c3c2a3001921
Step 4/10 : ENV FLASK_CONFIG development
 ---> Running in 79d815e68a4f
Removing intermediate container 79d815e68a4f
 ---> 70a8fd7f4c5f
Step 5/10 : RUN mkdir -p /web
 ---> Running in 53f1bf5111bf
Removing intermediate container 53f1bf5111bf
 ---> 5197ee3905cc
Step 6/10 : WORKDIR /web
 ---> Running in 11534ee7d882
Removing intermediate container 11534ee7d882
 ---> fbf6f6c9d24f
Step 7/10 : COPY requirements.txt /web/requirements.txt
 ---> f395a80ece7e
Step 8/10 : RUN pip install --upgrade pip
 ---> Running in 3ed9c4446068
Collecting pip
  Downloading https://files.pythonhosted.org/packages/54/0c/d01aa759fdc501a58f431eb594a17495f15b88da142ce14b5845662c13f3/pip-20.0.2-py2.py3-none-any.whl (1.4MB)
Installing collected packages: pip
  Found existing installation: pip 9.0.1
    Uninstalling pip-9.0.1:
      Successfully uninstalled pip-9.0.1
Successfully installed pip-20.0.2
Removing intermediate container 3ed9c4446068
 ---> ae21b8b8afd0
Step 9/10 : RUN pip install --no-cache-dir -r requirements.txt
 ---> Running in 73d35108a048
Collecting Flask==0.12.2
  Downloading Flask-0.12.2-py2.py3-none-any.whl (83 kB)
Collecting Flask-Bootstrap==3.3.7.1
  Downloading Flask-Bootstrap-3.3.7.1.tar.gz (456 kB)
Collecting Flask-HTTPAuth==3.2.3
  Downloading Flask_HTTPAuth-3.2.3-py2.py3-none-any.whl (4.8 kB)
Collecting Flask-Login==0.4.1
  Downloading Flask-Login-0.4.1.tar.gz (14 kB)
Collecting Flask-SQLAlchemy==2.2.0
  Downloading Flask_SQLAlchemy-2.2-py2.py3-none-any.whl (14 kB)
Collecting Flask-WTF==0.14.2
  Downloading Flask_WTF-0.14.2-py2.py3-none-any.whl (14 kB)
Collecting gunicorn==19.7.1
  Downloading gunicorn-19.7.1-py2.py3-none-any.whl (111 kB)
Collecting Jinja2==2.9.6
  Downloading Jinja2-2.9.6-py2.py3-none-any.whl (340 kB)
Collecting MySQL-Connector-Python==8.0.6
  Downloading mysql_connector_python-8.0.6-py2.py3-none-any.whl (253 kB)
Collecting SQLAlchemy==1.2.5
  Downloading SQLAlchemy-1.2.5.tar.gz (5.6 MB)
Collecting Werkzeug==0.14.1
  Downloading Werkzeug-0.14.1-py2.py3-none-any.whl (322 kB)
Collecting WTForms==2.1
  Downloading WTForms-2.1.zip (553 kB)
Collecting click>=2.0
  Downloading click-7.1.1-py2.py3-none-any.whl (82 kB)
Collecting itsdangerous>=0.21
  Downloading itsdangerous-1.1.0-py2.py3-none-any.whl (16 kB)
Collecting dominate
  Downloading dominate-2.5.1-py2.py3-none-any.whl (29 kB)
Collecting visitor
  Downloading visitor-0.1.3.tar.gz (3.3 kB)
Collecting MarkupSafe>=0.23
  Downloading MarkupSafe-1.1.1.tar.gz (19 kB)
Building wheels for collected packages: Flask-Bootstrap, Flask-Login, SQLAlchemy, WTForms, visitor, MarkupSafe
  Building wheel for Flask-Bootstrap (setup.py): started
  Building wheel for Flask-Bootstrap (setup.py): finished with status 'done'
  Created wheel for Flask-Bootstrap: filename=Flask_Bootstrap-3.3.7.1-py3-none-any.whl size=461565 sha256=58649bb64ff167616f6776f01c32361738b8cbaaa00324e28f75ff0435b20785
  Stored in directory: /tmp/pip-ephem-wheel-cache-tewaseww/wheels/5b/f4/4f/26886e9f06b0c1b6d54104a1fb423ebc7e06d94cf69700348e
  Building wheel for Flask-Login (setup.py): started
  Building wheel for Flask-Login (setup.py): finished with status 'done'
  Created wheel for Flask-Login: filename=Flask_Login-0.4.1-py2.py3-none-any.whl size=16448 sha256=2ea98f8e76660c6181c54bf0c8725354cba0d03f1e8f04444b9569ee0614d7b2
  Stored in directory: /tmp/pip-ephem-wheel-cache-tewaseww/wheels/db/40/67/41f90cc1fbb5ae5a444f380825ffa4fdc2fe9f56a8c694f913
  Building wheel for SQLAlchemy (setup.py): started
  Building wheel for SQLAlchemy (setup.py): finished with status 'done'
  Created wheel for SQLAlchemy: filename=SQLAlchemy-1.2.5-cp36-cp36m-linux_x86_64.whl size=1087465 sha256=055809407fe460b49557df037ae6cc5226642d3e9fa79bd08051337715e553b5
  Stored in directory: /tmp/pip-ephem-wheel-cache-tewaseww/wheels/57/d0/7a/a1733b126492dfafe07858e710823c6e10ba0e1ec5310d777f
  Building wheel for WTForms (setup.py): started
  Building wheel for WTForms (setup.py): finished with status 'done'
  Created wheel for WTForms: filename=WTForms-2.1-py2.py3-none-any.whl size=140375 sha256=09b3d53dcc4198bf80f15fbca0b1e0acfa7472d3f08dd0fb7bae7d71a705c231
  Stored in directory: /tmp/pip-ephem-wheel-cache-tewaseww/wheels/21/b0/be/88c7b9fc7f5028d0aa795c13319b0a66a9f49e64f0f0a97a8f
  Building wheel for visitor (setup.py): started
  Building wheel for visitor (setup.py): finished with status 'done'
  Created wheel for visitor: filename=visitor-0.1.3-py3-none-any.whl size=4626 sha256=864e0b505c41e870980d954d8d6e9eca5ce811d20e9da4640af46eb36a267c37
  Stored in directory: /tmp/pip-ephem-wheel-cache-tewaseww/wheels/a9/77/93/3b8a22ac46f57a22d0fd7b4912fff740bcbddbd720bd48508e
  Building wheel for MarkupSafe (setup.py): started
  Building wheel for MarkupSafe (setup.py): finished with status 'done'
  Created wheel for MarkupSafe: filename=MarkupSafe-1.1.1-py3-none-any.whl size=14509 sha256=246e3e694297ac475a247c3d709c047da75a26b0eb598f50888b5dad27496a84
  Stored in directory: /tmp/pip-ephem-wheel-cache-tewaseww/wheels/ca/85/2f/4c3a8ca6fb5eec7b43ec1e5666c7274dcdb86d6c32231aaa9d
Successfully built Flask-Bootstrap Flask-Login SQLAlchemy WTForms visitor MarkupSafe
Installing collected packages: click, Werkzeug, MarkupSafe, Jinja2, itsdangerous, Flask, dominate, visitor, Flask-Bootstrap, Flask-HTTPAuth, Flask-Login, SQLAlchemy, Flask-SQLAlchemy, WTForms, Flask-WTF, gunicorn, MySQL-Connector-Python
Successfully installed Flask-0.12.2 Flask-Bootstrap-3.3.7.1 Flask-HTTPAuth-3.2.3 Flask-Login-0.4.1 Flask-SQLAlchemy-2.2 Flask-WTF-0.14.2 Jinja2-2.9.6 MarkupSafe-1.1.1 MySQL-Connector-Python-8.0.6 SQLAlchemy-1.2.5 WTForms-2.1 Werkzeug-0.14.1 click-7.1.1 dominate-2.5.1 gunicorn-19.7.1 itsdangerous-1.1.0 visitor-0.1.3
Removing intermediate container 73d35108a048
 ---> 1175c284f052
Step 10/10 : COPY . /web
 ---> ba3097ccd2c7
Successfully built ba3097ccd2c7
Successfully tagged flaskapp-tutorial_web:latest
Building db
Step 1/3 : FROM mysql:5.7
5.7: Pulling from library/mysql
123275d6e508: Pull complete                                                                                                                                            27cddf5c7140: Pull complete                                                                                                                                            c17d442e14c9: Pull complete                                                                                                                                            2eb72ffed068: Pull complete                                                                                                                                            d4aa125eb616: Pull complete                                                                                                                                            52560afb169c: Pull complete                                                                                                                                            68190f37a1d2: Pull complete                                                                                                                                            3fd1dc6e2990: Pull complete                                                                                                                                            85a79b83df29: Pull complete                                                                                                                                            963449796e8c: Pull complete                                                                                                                                            003c42612f11: Pull complete                                                                                                                                            Digest: sha256:517d651577278f3e30ba93ad7c0ed342fdc8550bcde96a54b33ef0580ffec079
Status: Downloaded newer image for mysql:5.7
 ---> 273c7fcf9499
Step 2/3 : ADD scripts/tables.sql   /docker-entrypoint-initdb.d/1-tables.sql
 ---> fa6ed63f9d84
Step 3/3 : ADD scripts/seeddata.sql /docker-entrypoint-initdb.d/2-seeddata.sql
 ---> e6086f56b496
Successfully built e6086f56b496
Successfully tagged flaskapp-tutorial_db:latest
Creating flaskapp-tutorial_web_1 ... error                                                                                                                             Creating flaskapp_db             ...

ERROR: for flaskapp-tutorial_web_1  Cannot create container for service web: status code not OK but 500: {"Message":"Unhandled exception: Access is denied. (Exception Creating flaskapp_db             ... error                                                                                                                             
ERROR: for flaskapp_db  Cannot create container for service db: status code not OK but 500: {"Message":"Unhandled exception: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))"}

ERROR: for web  Cannot create container for service web: status code not OK but 500: {"Message":"Unhandled exception: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))"}

ERROR: for db  Cannot create container for service db: status code not OK but 500: {"Message":"Unhandled exception: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))"}
ERROR: Encountered errors while bringing up the project.
PS C:\Users\myuser\...\FlaskApp-Tutorial>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions