title: How can I exit a docker container running alpine 3.3 with an error code?
body: <p>How can I exit a docker container running alpine 3.3 with an error code?</p>
  
  <p>Using: <code>image: "alpine:3.3"</code></p>
  
  <p>I have tried the following:</p>
  
  <p><code>command: ["/bin/sh", "-c", "'exit 1'"]</code></p>
  
  <p>With the result:</p>
  
  <blockquote>
    <p>/bin/sh: exit 1: not found</p>
  </blockquote>
  
  <p>I've also tried:</p>
  
  <p><code>command: ["/bin/sh", "exit", "1"]</code></p>
  
  <p>Which had a similar error.</p>
  
  <p>The first thing I tried was:
  <code>command: ["exit", "1"]</code></p>
  
  <p>Which resulted in:</p>
  
  <blockquote>
    <p>Error: failed to start container "post-install-job": Error response
    from daemon: OCI runtime create failed: container_linux.go:345:
    starting container process caused "exec: \"exit\": executable file not
    found in $PATH": unknown</p>
  </blockquote>