title: docker run exited right away?
body: <p>I have the following Dockerfile so I can login the container to check the image Some_Linux_Img.</p>
  <pre><code>FROM Some_Linux_Img
  ENTRYPOINT [&quot;/bin/bash&quot;]
  </code></pre>
  <p>And I built it</p>
  <pre><code>docker build -t test:v2 .
  Sending build context to Docker daemon 2.048 kB
  Step 1/2 : FROM abc.com/shared/miniconda
   ---&gt; ec1a66fb9030
  Step 2/2 : ENTRYPOINT /bin/bash
   ---&gt; Running in ea14b4ce6c6e
   ---&gt; 21ebe99c7ef1
  Removing intermediate container ea14b4ce6c6e
  Successfully built 21ebe99c7ef1
  </code></pre>
  <p>However, it exited right after <code>docker run</code>?</p>
  <p>$ docker run --name test test:v2
  $ docker ps -a</p>
  <p>Status showed &quot;Exited (0) x seconds ago&quot;. I wanted to run some bash commands inside the container to check the Linux image <code>Some_Linux_Img</code>. (<code>docker exec -it test /bin/bash</code>)</p>