fix COPY failed (#9234)

since README.md listed in https://github.com/docker-library/hello-world/blob/master/.dockerignore , you will get COPY failed without this change.
This commit is contained in:
linchiwei123
2019-08-16 18:32:39 +08:00
committed by Usha Mandya
parent 9b5ff4f52d
commit 041a31c3b8

View File

@@ -226,12 +226,12 @@ repository does not contain a `Dockerfile`, or if you want to build with a custo
`Dockerfile`, without maintaining your own fork of the repository.
The example below builds an image using a `Dockerfile` from `stdin`, and adds
the `README.md` file from the ["hello-world" Git repository on GitHub](https://github.com/docker-library/hello-world).
the `hello.c` file from the ["hello-world" Git repository on GitHub](https://github.com/docker-library/hello-world).
```bash
docker build -t myimage:latest -f- https://github.com/docker-library/hello-world.git <<EOF
FROM busybox
COPY README.md .
COPY hello.c .
EOF
```