title: How to cat the docker's ENTRYPOINT?
body: <p>Suppose we have the following docker image: <code>osimis/orthanc-dicom-syncher</code>. We have no <code>Dockerfile</code> or code repository present (except what we could obtain through <code>docker history</code>).</p>
  
  <p>That docker image has a python script as it's <code>entrypoint</code> (like in <code>/usr/local/bin/orthanc-dicom-syncher</code>). I want to see that script's contents, but, unfortunately, the container stops immediately after running. That rules out <code>bash</code>-ing into container to cat the necessary file.</p>
  
  <p>Moreover, if i try to <code>docker run</code>, docker passes the whole command as an arguments to python script.</p>
  
  <p>I've tried to workaround it like:</p>
  
  <ol>
  <li><code>docker commit &lt;orthanc-dicom-syncher_contained_id&gt; my-broken-container</code></li>
  <li><code>docker run -it my-broken-container /bin/bash</code></li>
  </ol>
  
  <p>But this again runs the <code>/bin/bash</code> part as an argument to the python script (yielding <code>orthanc-dicom-syncher: error: unrecognized arguments: /bin/bash</code>).</p>
  
  <p>Any advice how to (ideally) <code>bash</code> into the container or (sufficiently) to extract entrypoint's code would be appreciated.</p>
  
  <p><em>There is no github repo with that image, so i couldn't find the code on the net; anyway, even if it were, i am curious how to solve this problem</em>.</p>