Back to Blog
Debian docker hub5/26/2023 ![]() ![]() mount type =bind,source =/var/nginx/conf,target =/etc/nginx/conf,readonly \Īny change made to the files in the local directories /var/Copying Content and Configuration Files from the Docker Hostĭocker can copy the content and configuration files from a local directory on the Docker host during container creation. mount type =bind,source =/var/www,target =/usr/share/nginx/html,readonly \ For a Docker host with content in the local directory /var/www and configuration files in /var/nginx/conf, run the command: The NGINX image uses the default NGINX configuration, which uses /usr/share/nginx/html as the container’s root directory and puts configuration files in /etc/nginx. When the container is created, you can mount a local directory on the Docker host to a directory in the container. Maintaining Content and Configuration Files on the Docker Host ![]()
0 Comments
Read More
Leave a Reply. |