From 57ccaf383cf3cb1dee27f76309eb534c78df7f21 Mon Sep 17 00:00:00 2001 From: Michael Friis Date: Fri, 27 May 2016 09:01:05 -0700 Subject: [PATCH] Add powershell example and make linux build example consistent with other examples Signed-off-by: Michael Friis Upstream-commit: ab391c9ab595f01e76b82edda0800e13655cc6f3 Component: engine --- components/engine/docs/reference/commandline/build.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/components/engine/docs/reference/commandline/build.md b/components/engine/docs/reference/commandline/build.md index ea820b5d96..72426d659e 100644 --- a/components/engine/docs/reference/commandline/build.md +++ b/components/engine/docs/reference/commandline/build.md @@ -79,7 +79,11 @@ Build Syntax Suffix | Commit Used | Build Context Used Instead of specifying a context, you can pass a single Dockerfile in the `URL` or pipe the file in via `STDIN`. To pipe a Dockerfile from `STDIN`: - docker build - < Dockerfile + $ docker build - < Dockerfile + +With Powershell on Windows, you can run: + + Get-Content Dockerfile | docker build - If you use STDIN or specify a `URL`, the system places the contents into a file called `Dockerfile`, and any `-f`, `--file` option is ignored. In this