<p>Both Kubernetes Pods and the results of Docker Compose scripts (henceforth: "Compositions") appear to result in clusters of virtual computers.</p>

<p>The computers in the clusters can all be configured to talk to each other so you can write a single script that mirrors your entire end-to-end production config. A single script allows you to deploy that cluster on any container-host.</p>

<p>Given the similarities between the two systems, I'm struggling to understand what the differences are between the two. </p>

<p>Why would I choose one over the other? Are they mutually exclusive systems or can I run compositions in kubernetes.</p>

<p>Are there any critical considerations that need to be accounted for when designing for a container system? If I am designing the architecture for a site <em>today</em> and would <em>like</em> to try and build a container-based system. What are the highest priority things I should design for? (as compared to building on a single machine system)</p>

<p><a href="https://github.com/docker/compose" rel="noreferrer"><code>docker compose</code></a> is just a way to declare the container you have to start: <del>it has no notion of node or cluster</del>, unless it launches swarm master and swarm nodes, but that is <a href="https://docs.docker.com/swarm/" rel="noreferrer"><code>docker swarm</code></a>)<br>
Update July 2016, 7 months later: docker 1.12 blurs the lines and <a href="https://docs.docker.com/engine/swarm/" rel="noreferrer">includes a "swarm mode"</a>.</p>

<p>It is vastly different from <a href="http://kubernetes.io/" rel="noreferrer">kubernetes</a>, a google tool to manage thousands of containers groups as Pod, over tens or hundreds of machines.</p>

<p>A <a href="http://kubernetes.io/v1.0/docs/user-guide/pods.html" rel="noreferrer">Kubernetes Pod</a> would <a href="http://googlecloudplatform.blogspot.fr/2015/01/everything-you-wanted-to-know-about-Kubernetes-but-were-afraid-to-ask.html" rel="noreferrer">be closer from a docker swarm</a>:</p>

<blockquote>
  <p>Imagine individual Docker containers as packing boxes. The boxes that need to stay together because they need to go to the same location or have an affinity to each other are loaded into shipping containers.<br>
  In this analogy, the packing boxes are Docker containers, and the shipping containers are Kubernetes pods.</p>
</blockquote>

<p>As <a href="https://stackoverflow.com/questions/33946144/what-are-the-differences-between-kubernetes-pods-and-docker-composes-composur/33946256#comment64413899_33946256">commented below</a> by <a href="https://stackoverflow.com/users/1686628/ealeon">ealeon</a>:</p>

<blockquote>
  <p>I think pod is equivalent to compose except that kubernetes can orchestrated pods, whereas there is nothing orchestrating compose unless it is used with swarm like you've mentioned.</p>
</blockquote>

<p>You can <a href="http://sebgoa.blogspot.fr/2015/04/1-command-to-kubernetes-with-docker.html" rel="noreferrer">launch kubernetes commands with docker-compose by the way</a>.</p>

<p><a href="https://i.stack.imgur.com/33iS2.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/33iS2.jpg" alt="http://3.bp.blogspot.com/-MDUsXIy-lt0/VMuhJ9jBefI/AAAAAAAAA0I/qPuy0N8UXWA/s1600/Screen%2BShot%2B2015-01-30%2Bat%2B7.19.27%2BAM.png"></a></p>

<blockquote>
  <p>In terms of how Kubernetes differs from other container management systems out there, such as Swarm, Kubernetes is the third iteration of cluster managers that Google has developed. </p>
</blockquote>

<p>You can hear more about kubernetes in the <a href="https://www.gcppodcast.com/post/episode-3-kubernetes-and-google-container-engine/" rel="noreferrer">episode #3 of Google Cloud Platform Podcast</a>.</p>

<p>While it is true both can create a multi-container application, a Pod also serves as a unit of deployment and horizontal scaling/replication, which docker compose does not provide.<br>
Plus, you don't create a pod directly, but use controllers (like replication controllers). </p>

<p>POD lives within a larger platform which offers Co-location (co-scheduling), fate sharing, coordinated replication, resource sharing, and dependency management.<br>
Docker-compose lives... on its own, with its <code>docker-compose.yml</code> file</p>
