Browse Source

Add powershell example and make linux build example consistent with other examples

Signed-off-by: Michael Friis <friism@gmail.com>
Michael Friis 9 years ago
parent
commit
ab391c9ab5
1 changed files with 5 additions and 1 deletions
  1. 5 1
      docs/reference/commandline/build.md

+ 5 - 1
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