Skip to content

Commit f57995c

Browse files
authored
Merge pull request #2588 from hardbyte/patch-1
Use correct syntax for adding label in dockerfile
2 parents 855275a + eecb1db commit f57995c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/packages/guides/connecting-a-repository-to-a-container-image.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ https://github.com/monalisa/hello_docker
3333
1. In your Dockerfile, add this line, replacing `OWNER` and `REPO` with your details:
3434

3535
```shell
36-
LABEL org.opencontainers.image.source https://github.com/<em>OWNER</em>/<em>REPO</em>
36+
LABEL org.opencontainers.image.source=https://github.com/<em>OWNER</em>/<em>REPO</em>
3737
```
3838
For example, if you're the user `monalisa` and own `my-repo`, you would add this line to your Dockerfile:
3939
```shell
40-
LABEL org.opencontainers.image.source https://github.com/monalisa/my-repo
40+
LABEL org.opencontainers.image.source=https://github.com/monalisa/my-repo
4141
```
4242
For more information, see "[LABEL](https://docs.docker.com/engine/reference/builder/#label)" in the official Docker documentation and "[Pre-defined Annotation Keys](https://github.com/opencontainers/image-spec/blob/master/annotations.md#pre-defined-annotation-keys)" in the `opencontainers/image-spec` repository.
4343

0 commit comments

Comments
 (0)