Home  >  Q&A  >  body text

docker 怎么配置nginx 文件路径

docker 怎么配置nginx 文件路径

巴扎黑巴扎黑2758 days ago823

reply all(1)I'll reply

  • 给我你的怀抱

    给我你的怀抱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.

    reply
    0
  • Cancelreply