Skip to content

Commit 3c06cec

Browse files
authored
Merge pull request moby#5447 from EoinFarrell/eoinfarrell/udpate-dockerfile-reference
Add/fix references to labs dockerfile version
2 parents ff0cedd + 62b7206 commit 3c06cec

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

frontend/dockerfile/docs/reference.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1237,7 +1237,7 @@ The available `[OPTIONS]` are:
12371237
| [`--chown`](#add---chown---chmod) | |
12381238
| [`--chmod`](#add---chown---chmod) | 1.2 |
12391239
| [`--link`](#add---link) | 1.4 |
1240-
| [`--exclude`](#add---exclude) | 1.7 |
1240+
| [`--exclude`](#add---exclude) | 1.7-labs |
12411241

12421242
The `ADD` instruction copies new files or directories from `<src>` and adds
12431243
them to the filesystem of the image at the path `<dest>`. Files and directories
@@ -1522,8 +1522,8 @@ The available `[OPTIONS]` are:
15221522
| [`--chown`](#copy---chown---chmod) | |
15231523
| [`--chmod`](#copy---chown---chmod) | 1.2 |
15241524
| [`--link`](#copy---link) | 1.4 |
1525-
| [`--parents`](#copy---parents) | 1.7 |
1526-
| [`--exclude`](#copy---exclude) | 1.7 |
1525+
| [`--parents`](#copy---parents) | 1.7-labs |
1526+
| [`--exclude`](#copy---exclude) | 1.7-labs |
15271527

15281528
The `COPY` instruction copies new files or directories from `<src>` and adds
15291529
them to the filesystem of the image at the path `<dest>`. Files and directories
@@ -1820,7 +1820,7 @@ COPY [--parents[=<boolean>]] <src> ... <dest>
18201820
The `--parents` flag preserves parent directories for `src` entries. This flag defaults to `false`.
18211821

18221822
```dockerfile
1823-
# syntax=docker/dockerfile:1.7-labs
1823+
# syntax=docker/dockerfile:1-labs
18241824
FROM scratch
18251825

18261826
COPY ./x/a.txt ./y/a.txt /no_parents/
@@ -1840,7 +1840,7 @@ directories after it will be preserved. This may be especially useful copies bet
18401840
with `--from` where the source paths need to be absolute.
18411841

18421842
```dockerfile
1843-
# syntax=docker/dockerfile:1.7-labs
1843+
# syntax=docker/dockerfile:1-labs
18441844
FROM scratch
18451845

18461846
COPY --parents ./x/./y/*.txt /parents/
@@ -1882,6 +1882,9 @@ supporting wildcards and matching using Go's
18821882
For example, to add all files starting with "hom", excluding files with a `.txt` extension:
18831883

18841884
```dockerfile
1885+
# syntax=docker/dockerfile:1-labs
1886+
FROM scratch
1887+
18851888
COPY --exclude=*.txt hom* /mydir/
18861889
```
18871890

@@ -1891,6 +1894,9 @@ even if the files paths match the pattern specified in `<src>`.
18911894
To add all files starting with "hom", excluding files with either `.txt` or `.md` extensions:
18921895

18931896
```dockerfile
1897+
# syntax=docker/dockerfile:1-labs
1898+
FROM scratch
1899+
18941900
COPY --exclude=*.txt --exclude=*.md hom* /mydir/
18951901
```
18961902

0 commit comments

Comments
 (0)