5
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

nginxのdockerコンテナをreloadする

Posted at

nginxのイメージは公式のalpine版

###再起動
これは普通に

docker restart コンテナ名

reload

docker kill -s HUP コンテナ名

これだけなんだけどvolumeでnginxの設定ファイルを直接指定しているとホスト側で設定ファイルを変更してもコンテナのファイルに反映されなかったので、volumeはディレクトリ単位で。

5
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?