Logspout은 이전 Docker 로그를 보냅니다.

Logspout은 이전 Docker 로그를 보냅니다.

안녕하세요. docker 컨테이너에서 papertrail로 로그를 보내는 로그 스파우트(logspout)가 있는데, 이제 다시 시작한 후 docker 컨테이너 로그 스파우트가 이전 로그도 모두 보낸다는 사실을 알게 되었습니다.
예는 다음과 같습니다.

Oct 06 15:37:09 gridhub r-Default-gridhub-1-96bd5cd9:  * Running on http://0.0.0.0:5000/ (Press CTRL+C to quit) 
Oct 06 15:37:09 gridhub r-Default-gridhub-1-96bd5cd9: 172.30.100.112 - - [03/Oct/2017 12:39:05] "GET / HTTP/1.1" 200 - 
Oct 06 15:37:09 gridhub r-Default-gridhub-1-96bd5cd9: 172.30.100.112 - - [03/Oct/2017 12:39:06] "GET /static/favicon.ico HTTP/1.1" 200 - 
Oct 06 15:37:09 gridhub r-Default-gridhub-1-96bd5cd9: 172.30.100.112 - - [03/Oct/2017 12:39:06] "GET /static/issue_count_low.png HTTP/1.1" 200 - 
Oct 06 15:37:09 gridhub r-Default-gridhub-1-96bd5cd9: 172.30.100.112 - - [03/Oct/2017 12:39:06] "GET /static/issue_count_high.png HTTP/1.1" 200 - 
Oct 06 15:37:09 gridhub r-Default-gridhub-1-96bd5cd9:  * Running on http://0.0.0.0:5000/ (Press CTRL+C to quit) 
Oct 11 10:21:38 gridhub r-Default-gridhub-1-96bd5cd9:  * Running on http://0.0.0.0:5000/ (Press CTRL+C to quit) 
Oct 11 10:21:38 gridhub r-Default-gridhub-1-96bd5cd9: 172.30.100.112 - - [03/Oct/2017 12:39:05] "GET / HTTP/1.1" 200 - 
Oct 11 10:21:38 gridhub r-Default-gridhub-1-96bd5cd9: 172.30.100.112 - - [03/Oct/2017 12:39:06] "GET /static/favicon.ico HTTP/1.1" 200 - 
Oct 11 10:21:38 gridhub r-Default-gridhub-1-96bd5cd9: 172.30.100.112 - - [03/Oct/2017 12:39:06] "GET /static/issue_count_low.png HTTP/1.1" 200 - 
Oct 11 10:21:38 gridhub r-Default-gridhub-1-96bd5cd9: 172.30.100.112 - - [03/Oct/2017 12:39:06] "GET /static/issue_count_high.png HTTP/1.1" 200 - 
Oct 11 10:21:38 gridhub r-Default-gridhub-1-96bd5cd9:  * Running on http://0.0.0.0:5000/ (Press CTRL+C to quit) 
Oct 11 10:21:38 gridhub r-Default-gridhub-1-96bd5cd9:  * Running on http://0.0.0.0:5000/ (Press CTRL+C to quit) 

도커 컨테이너에는 다음만 있습니다.

10/3/2017 2:38:50 PM * Running on http://0.0.0.0:5000/ (Press CTRL+C to quit)
10/3/2017 2:39:05 PM172.30.100.112 - - [03/Oct/2017 12:39:05] "GET / HTTP/1.1" 200 -
10/3/2017 2:39:06 PM172.30.100.112 - - [03/Oct/2017 12:39:06] "GET /static/favicon.ico HTTP/1.1" 200 -
10/3/2017 2:39:06 PM172.30.100.112 - - [03/Oct/2017 12:39:06] "GET /static/issue_count_low.png HTTP/1.1" 200 -
10/3/2017 2:39:06 PM172.30.100.112 - - [03/Oct/2017 12:39:06] "GET /static/issue_count_high.png HTTP/1.1" 200 -
10/6/2017 3:37:09 PM * Running on http://0.0.0.0:5000/ (Press CTRL+C to quit)
10/11/2017 10:21:38 AM * Running on http://0.0.0.0:5000/ (Press CTRL+C to quit)

다시 시작한 후 실제 마지막 로그만 보내는 방법을 아는 사람이 있습니까?

답변1

BACKLOG=false좋아, 마침내 로그 스파우트 컨테이너 환경에 추가하여 문제를 해결했습니다 ..
https://github.com/gliderlabs/logspout#suppressing-backlog-tail

관련 정보