How does docker configure the nginx file path
I don’t know whether you want to configure the path of the nginx configuration file or the path parsed in the nginx configuration.
If it is the path of the nginx configuration file, this has already been set in the startup command of the mirror (or the default value is directly adopted), either by overwriting the CMD startup command at the time of creation or by modifying the mirror. However, it is most recommended to update the original configuration file by overwriting it with the -v mount configuration file. This reusability is the best.
If the path parsed in nginx configuration is modified, the modified configuration file can be allocated to the container by the above method.