TrafeX/docker-php-nginx

Weird Issue with Volumes.

illmaren opened this issue · 4 comments

Hi,

Got quite the weird issue with the volumes...meaning if I add one the whole container stops working.

Its already possible with the example commands from the README

docker run -p 80:8080 trafex/php-nginx
is possible

docker run -p 800:8080 -v srv/test:/var/www/html trafex/php-nginx
throws no errors but 127.0.0.1:800 shows nothing but the browser (webseite not found) Message.

The concerning directory /srv/test belongs to nobody:nogroup
Within the directory no files appear so kind of a permission issue but not due to it being nobody:nogroup? I'm quite confused here.

Hi @illmaren ,

Are you sure you're refering to a mount with an absolute path. You mention srv/test, but it probably should be /srv/test.
Do you have an index.php file in that folder?

Not sure why its not as absolute path here but I tried it with absolute paths.

docker run -p 800:8080 -v /srv/test:/var/www/html trafex/php-nginx -d

My last command regarding the whole topic on my machine. and with this it didn't work.

Hi @illmaren,

Okay. Can you answer my second questions as well? What's in the /srv/test folder? Is there a index.php file?

TrafeX commented

I'll close this issue due to inactivity.