restart nginx container when upstream servers is updated

前端 未结 4 877
情歌与酒
情歌与酒 2020-12-24 13:48

I want to add/remove servers in my nginx running inside a docker container

I use ADD command in Dockerfile to add my nginx.conf to /etc/nginx dir.

#          


        
4条回答
  •  一生所求
    2020-12-24 14:45

    If you want to restart the NGINX process, restart the container by running the command:

    docker restart 
    

    https://blog.docker.com/2015/04/tips-for-deploying-nginx-official-image-with-docker/

提交回复
热议问题