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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Why Docker? Why Not Chef?

24 点作者 scottbessler超过 11 年前

5 条评论

gexla超过 11 年前
It&#x27;s not either or.<p>I don&#x27;t know about Chef because I have never used it. I use Ansible, which can be used for much of the same things.<p>Obviously Docker itself is for managing containers. The Chef-life capabilities are the building, repoing of images, and config files that you use with Docker.<p>Once a container is running, then Docker&#x27;s job is to keep the thing up rather than making changes to the existing container. That&#x27;s where something like Ansible might come in. Anything else you might want to automate after the container is already running could be handled by Ansible. For example, maybe you want to force a DB backup on all your X containers, then you could run an Ansible playbook to do that. There isn&#x27;t anything in Docker which would allow for that.<p>I like the flexibility of Ansible as a general tool, so I prefer to keep my server setup recipes in Ansible. Even if I don&#x27;t have to use those recipes often because I only need to setup one base image for each need, I still like to have that Ansible playbook. I haven&#x27;t tried all the new features of Docker yet though. I had a back off a bit a few months ago because I couldn&#x27;t keep up with all the changes.
评论 #6569584 未加载
gabrtv超过 11 年前
Docker and Chef are not mutually exclusive. Case in point: <a href="http://deis.io/" rel="nofollow">http:&#x2F;&#x2F;deis.io&#x2F;</a> is a PaaS that uses Chef extensively for orchestration of containers. There are other approaches that don&#x27;t use CM (e.g. CoreOS) but they are still very early.<p>I do agree that Docker makes Chef less appealing for automating deployment of applications that should be containerized -- most web apps, Redis, etc. However, Docker is not yet suitable for every workload. For example, if your application&#x2F;service has complex storage or networking requirements, Docker may not be a good fit (yet).
cryptolect超过 11 年前
I&#x27;ve been through the same love&#x2F;hate of using Chef, and have come to replace it with Docker. As a solo dev I have a bunch of services to configure and maintain, and Docker is incredibly easier[1] to work with in comparison to Chef.<p>[1] For my specific use cases.
shykes超过 11 年前
For a perspective on how to use Docker <i>and</i> Chef together, this article is a good starting point: <a href="http://tech.paulcz.net/2013/09/creating-immutable-servers-with-chef-and-docker-dot-io.html" rel="nofollow">http:&#x2F;&#x2F;tech.paulcz.net&#x2F;2013&#x2F;09&#x2F;creating-immutable-servers-wi...</a>
golubbe超过 11 年前
Interesting post. Looking forward to seeing RelateIQ present on this at the meetup at MongoDB this afternoon.