title: Docker container exits on non-zero exit status
body: <p>I have a Docker image whose <code>CMD</code> is <code>/bin/bash</code> to allow user interaction with tools contained within. I'm having an issue where if a command run on the bash prompt exits with a non-zero exit status -- e.g. <code>$ badcmd</code> -- the container exits. I'd like to be able to execute multiple commands in the container, keeping it open even if a specific command fails.</p>
  
  <p>My <code>run</code> command is:</p>
  
  <pre><code>docker run --rm -it &lt;image&gt;
  </code></pre>
  
  <p>I've tried adding <code>--sig-proxy=false</code>, but as it states in the help message, that works on non-TTY mode only.</p>
  
  <p>Additionally, I tried:</p>
  
  <pre><code>docker run --rm -i --sig-proxy=false &lt;image&gt;
  </code></pre>
  
  <p>This get's me slightly closer, but not in a really usable way as it allows for shell interaction, but omit's the bash prompt -- which while functional, it's really viable.</p>
  
  <p>Docker version info:</p>
  
  <pre><code>Client version: 1.5.0
  Client API version: 1.17
  Go version (client): go1.4.1
  Git commit (client): a8a31ef
  OS/Arch (client): linux/amd64
  Server version: 1.5.0
  Server API version: 1.17
  Go version (server): go1.4.1
  Git commit (server): a8a31ef
  </code></pre>
  
  <p>Thanks for any help!</p>
  
  <p>Cheers,
  J</p>