title: Docker only outputs one file
body: <p>Quick question that I cannot answer via standard googling. In a very simple docker image, I am trying to output text to two separate files. I've removed all other code from my example for simplicity:</p>
  
  <pre><code>test # cat Dockerfile 
  FROM centos:latest
      CMD echo "blah" &gt; /docker_path/blah
      CMD echo "blah2" &gt; /docker_path/blah2
  test # docker build -t test .
  Sending build context to Docker daemon 3.072 kB
  Sending build context to Docker daemon 
  Step 0 : FROM centos:latest
   ---&gt; bac949ce964b
  Step 1 : CMD echo "blah" &gt; /docker_path/blah
   ---&gt; Using cache
   ---&gt; bf1fb35bdaca
  Step 2 : CMD echo "blah2" &gt; /docker_path/blah2
   ---&gt; Using cache
   ---&gt; f36005c7aba9
  Successfully built f36005c7aba9
  test #  docker run -v /usr/local/docker/test:/docker_path:Z test
  test # ls
  blah2  Dockerfile
  </code></pre>
  
  <p>Why does only one file get written? I've realized it is always the second CMD that is written and if I join the writes into one command (ala: CMD echo "blah" > /docker_path/blah &amp;&amp; echo "blah2" > /docker_path/blah2), it will output both files.</p>
  
  <p>Can you please help me understand this behavior?</p>
  
  <p>Thanks!</p>