mirror of
https://github.com/docker/docs.git
synced 2026-04-12 06:19:22 +07:00
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:
committed by
Usha Mandya
parent
9b5ff4f52d
commit
041a31c3b8
@@ -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
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user