From 1f84c953fb26917ad7eeb503128411be4098043d Mon Sep 17 00:00:00 2001 From: zvier Date: Sun, 9 Dec 2018 15:05:21 +0800 Subject: [PATCH] fix #1549: docker-build man page doesn't reflect new rules for Dockerfile path --- man/docker-build.1.md | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/man/docker-build.1.md b/man/docker-build.1.md index 3ac9f81f0f10..f04b0430be7c 100644 --- a/man/docker-build.1.md +++ b/man/docker-build.1.md @@ -55,12 +55,11 @@ set as the **URL**, the repository is cloned locally and then sent as the contex # OPTIONS **-f**, **--file**=*PATH/Dockerfile* - Path to the Dockerfile to use. 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*. + Path to the Dockerfile to use. If you are building from a local directory, this + option means the Dockerfile path is considered relative to the current directory on + your local filesystem. Otherwise, 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 default is *Dockerfile* within the build context. **--squash**=*true*|*false* **Experimental Only**