docker-php-nginx icon indicating copy to clipboard operation
docker-php-nginx copied to clipboard

Weird Issue with Volumes.

Open illmaren opened this issue 2 years ago • 3 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.

illmaren avatar Nov 04 '23 00:11 illmaren

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?

TrafeX avatar Nov 15 '23 19:11 TrafeX

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.

illmaren avatar Nov 15 '23 23:11 illmaren

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 avatar Nov 17 '23 18:11 TrafeX

I'll close this issue due to inactivity.

TrafeX avatar May 10 '24 06:05 TrafeX