diff options
| author | Sebastiaan van Stijn <thaJeztah@users.noreply.github.com> | 2016-05-27 21:21:32 +0200 |
|---|---|---|
| committer | Sebastiaan van Stijn <github@gone.nl> | 2016-06-06 20:14:16 +0200 |
| commit | 5df3c258a17507923905dac4c30d3eafe6822a56 (patch) | |
| tree | 200d4f5073b93748644a23ec0aa708a87fe098dc /docs/reference | |
| parent | d3bbe11b990f03085a910ae4ad906aad1428c172 (diff) | |
| download | docker-5df3c258a17507923905dac4c30d3eafe6822a56.tar.gz | |
Merge pull request #23060 from friism/add-power-shell-example
Add power shell example
(cherry picked from commit 068d466cc7cd4ef3915b983b61e9cd029936ac90)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Diffstat (limited to 'docs/reference')
| -rw-r--r-- | docs/reference/commandline/build.md | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/docs/reference/commandline/build.md b/docs/reference/commandline/build.md index f0f30a0ced..881113af8e 100644 --- a/docs/reference/commandline/build.md +++ b/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 |
