给我你的怀抱2017-04-24 16:01:29
I don’t know if you want to configure the path of the nginx configuration file or configure the path parsed in the nginx configuration.
If it is the path to the nginx configuration file, this has been specified in the startup command of the image (or the default value is directly adopted), and can be changed either by overriding the CMD startup command when creating, or by modifying the image. However, the most recommended method is to overwrite the original configuration file through -v mounting configuration file to update. This kind of reusability is the best.
If you modify the path parsed in the nginx configuration, just add the modified configuration file to the container through the above method.