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*

2
  • More succinctly: anything that gets COPYd into a Docker image must be in the same directory tree as the Dockerfile. You cannot COPY from an arbitrary place on disk. Commented Jul 9, 2018 at 22:31
  • The "Context of the Build" makes perfect sense if you look at the docker build command. The command is docker build [OPTIONS] PATH | URL | - where PATH | URL | - is your "Context of the Build." If you are just looking at the "Dockerfile" reference, then it is confusing to me... Commented Jul 9, 2018 at 22:55