Skip to content

Commit 4b4a9aa

Browse files
authored
Merge pull request moby#5427 from thompson-shaun/update-dockerfile-ref-arg
Update ARG sytnax definition in dockerfile reference
2 parents a7656ae + 3a6e923 commit 4b4a9aa

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

frontend/dockerfile/docs/reference.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -728,7 +728,7 @@ This can be used to:
728728
The supported mount types are:
729729

730730
| Type | Description |
731-
| ---------------------------------------- | --------------------------------------------------------------------------------------------------------- |
731+
| ---------------------------------------- | ------------------------------------------------------------------------------------------------------------------------ |
732732
| [`bind`](#run---mounttypebind) (default) | Bind-mount context directories (read-only). |
733733
| [`cache`](#run---mounttypecache) | Mount a temporary directory to cache directories for compilers and package managers. |
734734
| [`tmpfs`](#run---mounttypetmpfs) | Mount a `tmpfs` in the build container. |
@@ -741,7 +741,7 @@ This mount type allows binding files or directories to the build container. A
741741
bind mount is read-only by default.
742742

743743
| Option | Description |
744-
| ---------------- | ---------------------------------------------------------------------------------------------- |
744+
| ---------------------------------- | ---------------------------------------------------------------------------------------------- |
745745
| `target`, `dst`, `destination`[^1] | Mount path. |
746746
| `source` | Source path in the `from`. Defaults to the root of the `from`. |
747747
| `from` | Build stage, context, or image name for the root of the source. Defaults to the build context. |
@@ -753,7 +753,7 @@ This mount type allows the build container to cache directories for compilers
753753
and package managers.
754754

755755
| Option | Description |
756-
| --------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
756+
| ---------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
757757
| `id` | Optional ID to identify separate/different caches. Defaults to value of `target`. |
758758
| `target`, `dst`, `destination`[^1] | Mount path. |
759759
| `ro`,`readonly` | Read-only if set. |
@@ -802,7 +802,7 @@ case.
802802
This mount type allows mounting `tmpfs` in the build container.
803803

804804
| Option | Description |
805-
| ------------ | ----------------------------------------------------- |
805+
| ---------------------------------- | ----------------------------------------------------- |
806806
| `target`, `dst`, `destination`[^1] | Mount path. |
807807
| `size` | Specify an upper limit on the size of the filesystem. |
808808

@@ -863,7 +863,7 @@ This mount type allows the build container to access SSH keys via SSH agents,
863863
with support for passphrases.
864864

865865
| Option | Description |
866-
| ---------- | ---------------------------------------------------------------------------------------------- |
866+
| ------------------------------ | ---------------------------------------------------------------------------------------------- |
867867
| `id` | ID of SSH agent socket or key. Defaults to "default". |
868868
| `target`, `dst`, `destination` | SSH agent socket path. Defaults to `/run/buildkit/ssh_agent.${N}`. |
869869
| `required` | If set to `true`, the instruction errors out when the key is unavailable. Defaults to `false`. |
@@ -2310,7 +2310,7 @@ Therefore, to avoid unintended operations in unknown directories, it's best prac
23102310
## ARG
23112311

23122312
```dockerfile
2313-
ARG <name>[=<default value>]
2313+
ARG <name>[=<default value>] ...
23142314
```
23152315

23162316
The `ARG` instruction defines a variable that users can pass at build-time to

0 commit comments

Comments
 (0)