TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Do you log with docker? What tools do you use? What are best practices?

3 点作者 KarenS超过 10 年前
Interested in learning about logging use cases re: Docker specifically. Let me know some details about the solution you&#x27;ve found - I want to compile some best practices to think about.<p>I started this conversation on reddit too (http:&#x2F;&#x2F;redd.it&#x2F;2ot4nl), but wanted to reach out to the hacker news community too.

2 条评论

dholowiski超过 10 年前
I use docker in production, for a rails app. I used it because it lives on a server with other web sites and I find it a pain to install, configure and manage ruby and rails with nginx, so it was very appealing to have that all in a container and not have to worry about it.<p>But now I&#x27;m suffering from a year old docker bug on centos, and it&#x27;s more of a pain than if i wasn&#x27;t using it.<p>I&#x27;m sure its mostly my lack of knowledge, but my personal opinion of docker is &#x27;not ready for production, yet&#x27;.<p>There is also a horrendous lack of documentation on the specifics of configuring docker for production, so you pretty much have to figure it out on your own.
chuhnk超过 10 年前
I completely avoid the Docker logging because it completely sucks. Currently to deal with compatibility I mount a read&#x2F;write volume and redirect stdout&#x2F;stderr there. In the future I will have apps direct output to logging agents rather than disk, buffer in memory and then push to a central store. Avoids massive disk IO.