title: How to 'docker exec' a container built from scratch?
body: <p>I am trying to <code>docker exec</code> a container that is built from scratch (say, a NATS container).  Seems pretty straight-forward, but since it is built from scratch, I am unable to access <code>/bin/bash</code>, <code>/bin/sh</code> and literally any such command.</p>
  
  <p>I get the error: <code>oci runtime error</code> (command not found, file not found, etc. depending upon the command that I enter).</p>
  
  <p>I tried some commands like:</p>
  
  <pre><code>docker exec -it &lt;container name&gt; /bin/bash
  docker exec -it &lt;container name&gt; /bin/sh
  docker exec -it &lt;container name&gt; ls
  </code></pre>
  
  <p>My question is, how do I <code>docker exec</code> a container that is built from scratch and consisting only of binaries?  By doing a <code>docker exec</code>, I wish to find out if the files have been successfully copied from my host to the container (I have a <code>COPY</code> in the <code>Dockerfile</code>).</p>