docker-curriculum icon indicating copy to clipboard operation
docker-curriculum copied to clipboard

docker-compose up command not bringing up the webapp

Open drml007 opened this issue 4 years ago • 2 comments

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

drml007 avatar Oct 04 '20 19:10 drml007

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 :-)

mora-01 avatar May 20 '22 22:05 mora-01

Just replace in docker-compose.yml: command: python3 app.py by command: python3 ./app.py as it written in dockerfile

rafikor avatar Jun 29 '23 06:06 rafikor