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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: What are the benefits of Docker?

2 点作者 bozho超过 9 年前
Docker is becoming quite popular. I&#x27;ve used it as an end-user just 3 times, and it never worked as expected. But assuming it does work, can you please list some actual benefits? And contrast them with install scripts, for example (considering the overhead of the VM and the issues in VM-host communication).<p>There are two use-cases - software that gets distributed to end-users for deployment, and internal software that gets deployed on your own (or cloud) infrastructure.<p>Let&#x27;s look at the 2nd case, which is more dominant. Why would I, as a developer, package my software with docker, if I can provide install scripts that do all of that, and thus have scriptable deployment without any extra overhead or learning curve? Or is docker mostly useful for the 1st usecase above?

1 comment

davelnewton超过 9 年前
The arguments for (and against) Docker are all over the web.<p>It&#x27;s useful in both cases; it&#x27;s not clear to me what you mean by &quot;actual benefits&quot;. You have precise control over what&#x27;s getting deployed and have almost zero reliance on anything on the deploy environment.<p>If you have &quot;install scripts&quot; that do all of that then you&#x27;re duplicating the efforts of Chef, Puppet, Docker, etc. that are probably (but not necessarily; benefit of the doubt and all that) better than your deploy scripts. You&#x27;re also still at the mercy of the environment where those scripts are run.