title: Docker app deployment hangs on Marathon, fails on Mesos
body: <p>I'm attempting the (potentially foolish) task of Dockerizing Zookeeper/Marathon/Mesos and deploying Docker containers <em>from</em> the Dockerized Mesos cluster.</p>
  
  <p>So far, I have a working Mesos cluster on two physically separate nodes: one node is running both a Mesos <a href="https://registry.hub.docker.com/u/magsol/lj-mesos-master/dockerfile/" rel="nofollow noreferrer">master</a> and a <a href="https://registry.hub.docker.com/u/magsol/lj-mesos-slave/dockerfile/" rel="nofollow noreferrer">slave</a> (container Dockerfiles linked), and the second node is running just a slave. They seem to be functioning just fine; I am able to submit very simple jobs through Marathon (also its own container, running on the node with the master and slave) and they complete successfully.</p>
  
  <p>However, when I attempt to <a href="https://mesosphere.github.io/marathon/docs/native-docker.html" rel="nofollow noreferrer">submit Docker containers through the Marathon API</a>, it <em>seems</em> to hang. The Marathon interface hangs at "Deploying" and never changes, even after letting it sit for 15 minutes, stopping, resubmitting, and letting it sit for another 15 minutes.</p>
  
  <p><img src="https://i.stack.imgur.com/1C6rJ.png" alt="Marathon UI, depicting seemingly frozen deployment of Docker task"></p>
  
  <p>At the same time, tasks are nonetheless being submitted to the Mesos slaves; the Mesos UI is reporting FAILED tasks left and right.</p>
  
  <p><img src="https://i.stack.imgur.com/7QvZt.png" alt="Mesos UI, depicting failed tasks"></p>
  
  <p><strong><em>EDIT 1</em></strong></p>
  
  <p>The resulting Sandbox logs for each of the executors are also completely empty.</p>
  
  <p><img src="https://i.stack.imgur.com/JUbgo.png" alt="empty sandbox"></p>
  
  <p><strong><em>EDIT 2</em></strong></p>
  
  <p>Found something interesting buried in the slave logs:</p>
  
  <p><img src="https://i.stack.imgur.com/TQ1KU.png" alt="slave logs"></p>
  
  <p>Line of interest:</p>
  
  <blockquote>
    <p>None of the enabled containerizers (mesos) could create a container for the provided TaskInfo/ExecutorInfo message.</p>
  </blockquote>
  
  <p>It looks like the containerizer is failing to run, and from what I can see, it's not even considering docker as a containerizer. I followed the configuration <a href="https://open.mesosphere.com/tutorials/launch-docker-container-on-mesosphere/" rel="nofollow noreferrer">here</a> to deploy Docker jobs; does this change if the Mesos slaves are themselves Docker containers?</p>
  
  <p>I'm somewhat out of my element and can't find any references along these lines. Any idea what's happening?</p>