If I'm going to run nginx like so:
docker run -i -t -p 80:80 \
-v /docker/dev:/dev \
-v /docker/var/www:/var/www \
-v /docker/var/log/nginx:/var/log/nginx \
-v /docker/etc/nginx:/etc/nginx \
--name clmnginxbash quasaur/nginximage /bin/bash
...and I'm using the Docker HOST's filesystem to store nginx
's configs and the website itself, I shouldn't have to include a VOLUME statement for those shares, or should I?
VOLUME ["/etc/nginx", "/var/www","/var/log/nginx"]
In fact, shouldn't I be able to remove those directories from the image in the Dockerfile since they're not going to be used?
RUN rm -rf /usr/share/nginx/www /etc/nginx /var/log/nginx
Thanks for your feedback!