title: docker running a data container from scratch
body: <p>I created a data only container containing static HTML files that are intended to be consumed by a nginx container. Goal is that my webapp is providing a volume that nginx can use.</p>
  
  <p>For this reason I created a simple Dockerfile:</p>
  
  <pre><code>FROM scratch
  MAINTAINER me &lt;me@me.com&gt;
  ADD dist/ /webappp/
  </code></pre>
  
  <p>When I run the created container from command line <code>run -d -v /webappp --name webapp myOrg/webapp echo yo</code> </p>
  
  <p>I get the error <code>Error response from daemon: Cannot start container db7fd5cd40d76311f8776b1710b4fe6d66284fe75253a806e281cd8ae5169637: exec: "echo": executable file not found in $PATH</code> which if of course correct because the image has no commands at all the can be executed. Running a container without a command is not possible. </p>
  
  <p>While this error on command line is not a big problem for me because I know the data container is still created and can now be accessed by nginx it turns out to be a no go if I want to automate it with Vagrant. The automated processes always fail because of this error.</p>
  
  <p>My only solution so far is to extend my little handy image from from a distro which IMHO doesn't make sense for a data only container in order just to call echo or true!</p>
  
  <p>Is there a NOP exec command in docker or does docker need always to execute something, is it possible to run a scratch container that does nothing or does not produce an error.</p>