Skip to content

docker-build man page doesn't reflect new rules for Dockerfile path #1549

Description

@starthal

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions