2016/09/26

docker nginx reload



根據[官方blog](https://blog.docker.com/2015/04/tips-for-deploying-nginx-official-image-with-docker/)

當 nginx 設定檔更動時, 你不能直接執行 nginx reload, 但幸好 nginx 支援特定 signal 去做 reload

/etc/init.d/nginx reload
```sh
sudo docker kill -s HUP
```


/etc/init.d/nginx restart
```sh
sudo docker restart
```

2 則留言: