Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows 10 - Web1 issue restarting program. Need to reset Docker shared drives #20

Closed
Aaron3c opened this issue Aug 1, 2018 · 1 comment
Labels
good first issue Good for newcomers

Comments

@Aaron3c
Copy link
Contributor

Aaron3c commented Aug 1, 2018

restarting program after termination was faulty on windows 10 too. Web1 failed to compose.

Terminal messages:


C:\Users\aaron\Downloads\fast-stream-postings>docker-compose up
Starting fast-stream-postings_redis_1 ... done
Starting fast-stream-postings_db_1 ... done
Starting fast-stream-postings_web_1 ... error

ERROR: for fast-stream-postings_web_1 Cannot start service web: error while creating mount source path '/host_mnt/c/Users/aaron/Downloads/fast-stream-postings/app': mkdir /host_mnt/c: file exists

ERROR: for web Cannot start service web: error while creating mount source path '/host_mnt/c/Users/aaron/Downloads/fast-stream-postings/app': mkdir /host_mnt/c: file exists
ERROR: Encountered errors while bringing up the project.


running Git config command didn't help either:


C:\Users\aaron\Downloads\fast-stream-postings>git config --global core.autocrlf false

C:\Users\aaron\Downloads\fast-stream-postings>docker-compose up --build
Removing fast-stream-postings_web_1
Building web
Step 1/15 : FROM python:3.6
---> d49c41b6e6c4
Step 2/15 : RUN useradd -m service-worker
---> Using cache
---> e8e8945b916c
Step 3/15 : WORKDIR /home/submit-fast-stream-post
---> Using cache
---> e8441fc0cae2
Step 4/15 : COPY requirements.txt requirements.txt
---> Using cache
---> 7183093bb0bc
Step 5/15 : RUN python -m venv venv
---> Using cache
---> 3e80bb219b5c
Step 6/15 : RUN pip install -r requirements.txt
---> Using cache
---> 31eccc208641
Step 7/15 : COPY app app
---> 9902f558e38c
Step 8/15 : COPY migrations migrations
---> 8712ae4178dc
Step 9/15 : COPY config.py postings.py deploy.sh ./
---> 80d8158d7927
Step 10/15 : RUN chmod +x deploy.sh
---> Running in d49efb38ae96
Removing intermediate container d49efb38ae96
---> 04290e46c12b
Step 11/15 : ENV FLASK_APP postings.py
---> Running in 0600aacc0863
Removing intermediate container 0600aacc0863
---> b46570edc05a
Step 12/15 : EXPOSE 5000
---> Running in aedddc462ea8
Removing intermediate container aedddc462ea8
---> 527f823abae2
Step 13/15 : RUN chown -R service-worker:service-worker ./
---> Running in daa169014125
Removing intermediate container daa169014125
---> ce05e4b302a4
Step 14/15 : USER service-worker
---> Running in e013ede1bf03
Removing intermediate container e013ede1bf03
---> 1bbdb622295a
Step 15/15 : CMD ["./deploy.sh"]
---> Running in 04129f1e5ecb
Removing intermediate container 04129f1e5ecb
---> dab7961cdd93
Successfully built dab7961cdd93
Successfully tagged fast-stream-postings_web:latest
fast-stream-postings_db_1 is up-to-date
fast-stream-postings_redis_1 is up-to-date
Recreating bf81bbd6c1fd_fast-stream-postings_web_1 ... error

ERROR: for bf81bbd6c1fd_fast-stream-postings_web_1 Cannot start service web: error while creating mount source path '/host_mnt/c/Users/aaron/Downloads/fast-stream-postings/app': mkdir /host_mnt/c: file exists

ERROR: for web Cannot start service web: error while creating mount source path '/host_mnt/c/Users/aaron/Downloads/fast-stream-postings/app': mkdir /host_mnt/c: file exists
ERROR: Encountered errors while bringing up the project.


managed to resolve issue by opening docker settings window:

image

shared drives> unchecked box for C > apply
shared drives> rechecked box for C > apply

re-run docker-compose up in terminal.

@jonodrew jonodrew added the good first issue Good for newcomers label Aug 1, 2018
@jonodrew
Copy link
Owner

jonodrew commented Aug 1, 2018

Issue appears to be Windows-centric and @Aaron3c has clearly detailed the steps to take. Needs a pull request to update the README for people who discover this issue as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants