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

-v <localpath>:/var/www does not see files #9

Open
d1b1 opened this issue Sep 26, 2014 · 4 comments
Open

-v <localpath>:/var/www does not see files #9

d1b1 opened this issue Sep 26, 2014 · 4 comments

Comments

@d1b1
Copy link

d1b1 commented Sep 26, 2014

Is there an issue with file permissions? When I try to pass a volume in the docker container I can no see the files in the volume.

@stucki
Copy link

stucki commented Sep 28, 2014

The default document root is /usr/share/nginx/html. This will work:

docker run -p 80:80 -v $(pwd):/usr/share/nginx/html dockerfile/nginx

@d1b1
Copy link
Author

d1b1 commented Sep 29, 2014

Found the issue. The volumes mount inside the Boot2Docker and not directly the Mac OSX. Had to alter Boot2Docker to give the containers access to the directories on my local machine.

http://viget.com/extend/how-to-use-docker-on-os-x-the-missing-guide

@d1b1
Copy link
Author

d1b1 commented Oct 6, 2014

Related issue. It looks like my local changes to a volume do not reflect in nginx. Php files and changes to these files work fine. But when we run Gulp, the build bundles (static JS files) do not. Even if we edit the files on the actual container the files are editable, but nginx sees an older version. Any ideas?

@pikeas
Copy link

pikeas commented Mar 3, 2015

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

No branches or pull requests

3 participants