From 539f8aa082dd5dc451fc88e8506e9f9d30268aa8 Mon Sep 17 00:00:00 2001 From: sicwolf Date: Sat, 8 Oct 2016 18:52:15 +0800 Subject: [PATCH] Wrong destination folder in container /opt/webapp of web container includes app.py, if set destination folder as /opt/webapp, app.py is not visible and below error log presents, so it's better to set the destination folder as /webapp. docker logs -f web python: can't open file 'app.py': [Errno 2] No such file or directory --- engine/tutorials/dockervolumes.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/tutorials/dockervolumes.md b/engine/tutorials/dockervolumes.md index 2fb5387048..8dd0c9d7cf 100644 --- a/engine/tutorials/dockervolumes.md +++ b/engine/tutorials/dockervolumes.md @@ -99,7 +99,7 @@ In addition to creating a volume using the `-v` flag you can also mount a directory from your Docker engine's host into a container. ```bash -$ docker run -d -P --name web -v /src/webapp:/opt/webapp training/webapp python app.py +$ docker run -d -P --name web -v /src/webapp:/webapp training/webapp python app.py ``` This command mounts the host directory, `/src/webapp`, into the container at