Skip to content

Commit bfd46b6

Browse files
authored
Merge pull request moby#5241 from dvdksn/docs-clarify-mount-from
docs: clarify valid from targets for run --mount
2 parents 820417a + f0706e3 commit bfd46b6

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

frontend/dockerfile/docs/reference.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -682,12 +682,12 @@ The supported mount types are:
682682
This mount type allows binding files or directories to the build container. A
683683
bind mount is read-only by default.
684684

685-
| Option | Description |
686-
| ---------------- | ------------------------------------------------------------------------------------ |
687-
| `target`, `dst`, `destination`[^1] | Mount path. |
688-
| `source` | Source path in the `from`. Defaults to the root of the `from`. |
689-
| `from` | Build stage or image name for the root of the source. Defaults to the build context. |
690-
| `rw`,`readwrite` | Allow writes on the mount. Written data will be discarded. |
685+
| Option | Description |
686+
| ---------------- | ---------------------------------------------------------------------------------------------- |
687+
| `target`, `dst`, `destination`[^1] | Mount path. |
688+
| `source` | Source path in the `from`. Defaults to the root of the `from`. |
689+
| `from` | Build stage, context, or image name for the root of the source. Defaults to the build context. |
690+
| `rw`,`readwrite` | Allow writes on the mount. Written data will be discarded. |
691691

692692
### RUN --mount=type=cache
693693

@@ -700,7 +700,7 @@ and package managers.
700700
| `target`, `dst`, `destination`[^1] | Mount path. |
701701
| `ro`,`readonly` | Read-only if set. |
702702
| `sharing` | One of `shared`, `private`, or `locked`. Defaults to `shared`. A `shared` cache mount can be used concurrently by multiple writers. `private` creates a new mount if there are multiple writers. `locked` pauses the second writer until the first one releases the mount. |
703-
| `from` | Build stage to use as a base of the cache mount. Defaults to empty directory. |
703+
| `from` | Build stage, context, or image name to use as a base of the cache mount. Defaults to empty directory. |
704704
| `source` | Subpath in the `from` to mount. Defaults to the root of the `from`. |
705705
| `mode` | File mode for new cache directory in octal. Default `0755`. |
706706
| `uid` | User ID for new cache directory. Default `0`. |

0 commit comments

Comments
 (0)