собираю image > docker build -t nginx.test .
запускаю командой > docker run -d -p 80:80 -v /data:/date:rw nginx.test
вываливается ошибка :
docker: Error response from daemon: Mounts denied:
The path /data is not shared from the host and is not known to Docker.
You can configure shared paths from Docker -> Preferences... -> Resources -> File Sharing.
добавление пути в File Sharing к корневой папке проекта не дает нужного результата :(
Dockerfile
FROM ubuntu:latest
RUN apt-get update
RUN apt-get install -y nginx
WORKDIR /data
COPY ./mysite.conf /etc/nginx/sites-enabled/mysite.local.conf
VOLUME /data
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]