Description
Now that #886 allows the Dockerfile to be outside the build context, the man page is no longer correct.
Describe the results you received:
The docker-build man page says for --file:
If the path is a relative path and you are building from a local directory, then the path must be relative to that directory. If you are building from a remote URL pointing to either a tarball or a Git repository, then the path must be relative to the root of the remote context. In all cases, the file must be within the build context. The default is Dockerfile.
Describe the results you expected:
This should reflect the actual behavior. If I understand correctly, the path is actually relative to the directory in which docker build was run, not the build context dir specified in PATH. I don't know the rules for remote URLs.
Output of docker version:
Docker version 18.09.0, build 4d60db4
Description
Now that #886 allows the Dockerfile to be outside the build context, the man page is no longer correct.
Describe the results you received:
The
docker-buildman page says for--file:Describe the results you expected:
This should reflect the actual behavior. If I understand correctly, the path is actually relative to the directory in which
docker buildwas run, not the build context dir specified inPATH. I don't know the rules for remote URLs.Output of
docker version: