浏览代码

Merge pull request #23060 from friism/add-power-shell-example

Add power shell example
Sebastiaan van Stijn 9 年之前
父节点
当前提交
068d466cc7
共有 1 个文件被更改,包括 5 次插入1 次删除
  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`
 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`:
 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
 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
 called `Dockerfile`, and any `-f`, `--file` option is ignored. In this