title: dockerfile: how use CMD or ENTRYPOINT from base image
body: <p>I have several base docker images which are not owned by me (so I cannot modify them).  However, I'm creating new images from them with additional things installed.</p>
  
  <p>What I can't figure out is how to tell dockerfile to copy the CMD (or ENTRYPOINT) of the base image.  Something like this:</p>
  
  <pre><code>FROM other:latest
  RUN my-extra-install
  CMD &lt;use-the-CMD-from-base-image&gt;
  </code></pre>
  
  <p>I don't think there's any direct syntax for the CMD command to do what I want. I'm wondering if there's a workaround.</p>