回答編集履歴
2
add
answer
CHANGED
@@ -10,4 +10,20 @@
|
|
10
10
|
|
11
11
|
他にも syslog に飛ばすようにする方法もあるようです。
|
12
12
|
|
13
|
-
[http://heartbeats.jp/hbblog/2014/07/3-tips-for-nginx-on-docker.html](http://heartbeats.jp/hbblog/2014/07/3-tips-for-nginx-on-docker.html)
|
13
|
+
[http://heartbeats.jp/hbblog/2014/07/3-tips-for-nginx-on-docker.html](http://heartbeats.jp/hbblog/2014/07/3-tips-for-nginx-on-docker.html)
|
14
|
+
|
15
|
+
---
|
16
|
+
|
17
|
+
他にも、コンテナの中から標準出力や標準エラーにログを書き込めば、ホストの、
|
18
|
+
|
19
|
+
```
|
20
|
+
/var/lib/docker/containers/<CONTAINER>/<CONTAINER>-json.log
|
21
|
+
```
|
22
|
+
|
23
|
+
のようなパスに保存されるようです。これを fluentd で処理すると、いい感じに扱えそうな気もします。
|
24
|
+
|
25
|
+
- [http://www.fluentd.org/guides/recipes/docker-logging](http://www.fluentd.org/guides/recipes/docker-logging)
|
26
|
+
- [http://stackoverflow.com/questions/22541333/have-nginx-access-log-and-error-log-log-to-stdout-and-stderr-of-master-process](http://stackoverflow.com/questions/22541333/have-nginx-access-log-and-error-log-log-to-stdout-and-stderr-of-master-process)
|
27
|
+
|
28
|
+
(docker も fluentd もまだ本気で使ったことはないので想像ですけれども)
|
29
|
+
|
1
add
answer
CHANGED
@@ -4,4 +4,10 @@
|
|
4
4
|
|
5
5
|
```
|
6
6
|
docker kill -s HUP <CONTAINER>
|
7
|
-
```
|
7
|
+
```
|
8
|
+
|
9
|
+
---
|
10
|
+
|
11
|
+
他にも syslog に飛ばすようにする方法もあるようです。
|
12
|
+
|
13
|
+
[http://heartbeats.jp/hbblog/2014/07/3-tips-for-nginx-on-docker.html](http://heartbeats.jp/hbblog/2014/07/3-tips-for-nginx-on-docker.html)
|