Skip to content

Commit d0597a3

Browse files
authored
Merge pull request moby#5275 from dvdksn/dockerfile-flag-versions
docs: add min dockerfile version for flags
2 parents 8c237af + 8487cb4 commit d0597a3

File tree

1 file changed

+21
-15
lines changed

1 file changed

+21
-15
lines changed

frontend/dockerfile/docs/reference.md

Lines changed: 21 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -638,9 +638,11 @@ EOF
638638

639639
The available `[OPTIONS]` for the `RUN` instruction are:
640640

641-
- [`--mount`](#run---mount)
642-
- [`--network`](#run---network)
643-
- [`--security`](#run---security)
641+
| Option | Minimum Dockerfile version |
642+
| ------------------------------- | -------------------------- |
643+
| [`--mount`](#run---mount) | 1.2 |
644+
| [`--network`](#run---network) | 1.3 |
645+
| [`--security`](#run---security) | 1.1.2-labs |
644646

645647
### Cache invalidation for RUN instructions
646648

@@ -1150,12 +1152,14 @@ ADD [OPTIONS] ["<src>", ... "<dest>"]
11501152
11511153
The available `[OPTIONS]` are:
11521154

1153-
- [`--keep-git-dir`](#add---keep-git-dir)
1154-
- [`--checksum`](#add---checksum)
1155-
- [`--chown`](#add---chown---chmod)
1156-
- [`--chmod`](#add---chown---chmod)
1157-
- [`--link`](#add---link)
1158-
- [`--exclude`](#add---exclude)
1155+
| Option | Minimum Dockerfile version |
1156+
| --------------------------------------- | -------------------------- |
1157+
| [`--keep-git-dir`](#add---keep-git-dir) | 1.1 |
1158+
| [`--checksum`](#add---checksum) | 1.6 |
1159+
| [`--chown`](#add---chown---chmod) | |
1160+
| [`--chmod`](#add---chown---chmod) | 1.2 |
1161+
| [`--link`](#add---link) | 1.4 |
1162+
| [`--exclude`](#add---exclude) | 1.7 |
11591163

11601164
The `ADD` instruction copies new files or directories from `<src>` and adds
11611165
them to the filesystem of the image at the path `<dest>`. Files and directories
@@ -1434,12 +1438,14 @@ COPY [OPTIONS] ["<src>", ... "<dest>"]
14341438

14351439
The available `[OPTIONS]` are:
14361440

1437-
- [`--from`](#copy---from)
1438-
- [`--chown`](#copy---chown---chmod)
1439-
- [`--chmod`](#copy---chown---chmod)
1440-
- [`--link`](#copy---link)
1441-
- [`--parents`](#copy---parents)
1442-
- [`--exclude`](#copy---exclude)
1441+
| Option | Minimum Dockerfile version |
1442+
| ---------------------------------- | -------------------------- |
1443+
| [`--from`](#copy---from) | |
1444+
| [`--chown`](#copy---chown---chmod) | |
1445+
| [`--chmod`](#copy---chown---chmod) | 1.2 |
1446+
| [`--link`](#copy---link) | 1.4 |
1447+
| [`--parents`](#copy---parents) | 1.7 |
1448+
| [`--exclude`](#copy---exclude) | 1.7 |
14431449

14441450
The `COPY` instruction copies new files or directories from `<src>` and adds
14451451
them to the filesystem of the image at the path `<dest>`. Files and directories

0 commit comments

Comments
 (0)