docker-curriculum
docker-curriculum copied to clipboard
docker-compose up command not bringing up the webapp
Hi,
I am facing an issue in which while using the docker-compose up command it is giving below error
web_1 | python3: can't open file 'app.py': [Errno 2] No such file or directory foodtrucks_web_1 exited with code 2
In the bash i went and chmod it to 777 but still it is giving issues. I am using docker quickstart terminal for windows.
Request you help here.
Thanks, Gaurav
Hello, I am facing the same issue :-( I am using Docker Destop on windows. The issue may be related to
volumes:
- ./flask-app:/opt/flask-app
In docker-compose.yml file I've tried to replace ./flask-app by its full windows path, but no sucess :-)
Just replace in docker-compose.yml:
command: python3 app.py
by
command: python3 ./app.py
as it written in dockerfile