Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • 2
    FYI, this seems to be fixed in docker as of this comment. I'm using boot2docker on my mac. I can use the -v option and my local directory gets mounted all the way into the container. Commented Dec 3, 2014 at 8:14
  • 1
    None of the answers below meet the OP's requirement #2. They want to do it from Dockerfile, not the docker run command. I'm also wondering. Commented Sep 28, 2020 at 22:58
  • Please don't tag your images latest! medium.com/@mccode/… Commented May 9, 2022 at 13:43