Closed PikuZheng closed 2 years ago
Hi @PikuZheng,
Can you post the output when you run this command:
docker run -p 80:8080 -ti -v "/userdata/php/config:/etc/nginx/conf.d" -v /userdata/php/html:/var/www/html trafex/php-nginx:latest ls -la /etc/nginx/conf.d
localhost:~# docker run -p 81:8080 -ti -v "/userdata/php/config:/etc/nginx/conf.d" -v /userdata/php/html:/var/www/html trafex/php-nginx:latest ls -la /etc/nginx/conf.d
total 20
drwxr-xr-x 2 root root 4096 Sep 6 07:05 .
drwxr-xr-x 1 root root 4096 Sep 6 23:42 ..
-rw-r--r-- 1 root root 3678 Sep 1 06:39 fullchain.pem
-rw-r--r-- 1 root root 2277 Sep 3 07:10 nginx.conf
-rw-r--r-- 1 root root 1706 Sep 1 06:39 privkey.pem
drwxr-xr-x 2 nginx nginx 4096 Sep 1 06:54 conf.d
damn! after chown it to root, everything works.
Yeah that's a bit annoying with Docker volumes. Glad it's solved!
Hi, Thanks your working first. I'm using
docker run -p 80:8080 -v /userdata/php/html:/var/www/html trafex/php-nginx:latest
everything works fine unitil I recreated it withit's not stating with logs:
but
what should I do now?