title: Docker ENTRYPOINT to run after volume mount
body: <p>My Dockerfile have a script to run on ENTRYPOINT. 
  The container is planned to run with a volume mount where my code resides,  and it needs to run couple of commands once the container is up with volume mount.</p>
  
  <p>But from errors I get while running container, I believe Docker volume mount happens after the ENTRYPOINT script.</p>
  
  <p>I sure can run the commands with <em>docker exec</em> options once container is up. But that makes it more lines of running commands. Is there any work-around, even by using docker-compose?</p>
  
  <p><strong>Dockerfile :</strong></p>
  
  <pre><code>FROM my-container
  WORKDIR /my-mount-dir
  
  ADD startup-script.sh /root/startup-script.sh
  ENTRYPOINT ["/root/startup-script.sh"]
  </code></pre>
  
  <p><strong>Docker Run :</strong></p>
  
  <p>docker run -itd -v /home/user/directory:/my-mount-dir build-container</p>
  
  <p><strong>Note :</strong> startup-script.sh includes commands supposed to run on the mounted directory files.</p>