Introduction
Sometimes you want to change your web server settings without rebuilding your container. Volume mounting lets you use configuration files from your computer inside the container, so you can update settings easily.
When you want to test new nginx settings without rebuilding the Docker image.
When you need to keep your configuration files outside the container for easier updates.
When running multiple containers that share the same configuration files.
When you want to keep your container lightweight by not including config files inside it.
When you want to quickly fix a config error by editing the file on your host machine.