A
A
art1ove2016-02-21 17:07:48
Nginx
art1ove, 2016-02-21 17:07:48

Nginx in Docker on Mac OS X - permissions?

Container creation:

docker run --name nginx_monit -d -p 80:80 -v \
/Users/art1ove/Projects/nginx/default.conf:/etc/nginx/conf.d/default.conf \
-v /Users/art1ove/Projects/issuesdb.d:/usr/share/nginx/html nginx

in /usr/share/nginx/html the directory with the index.json index file is mounted
in the conf.
nginx issues 403, the problem is clearly in the rights inherited by share from OS X:
2016/02/21 14:05:11 [error] 6#6: *1 "/usr/share/nginx/html/index.json" is forbidden (13: Permission denied), client: 192.168.99.1, server: localhost, request: "GET / HTTP/1.1", host: "192.168.99.100"

in the container (like everything inside the html directory):
# ls -l /usr/share/nginx
total 0
drwxr-x--- 1 1000 staff 2584 Feb 21 12:33 html

the home directory from the host is rummaged through vbox.
Has anyone solved this problem?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question