You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`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. |
691
691
692
692
### RUN --mount=type=cache
693
693
@@ -700,7 +700,7 @@ and package managers.
700
700
|`target`, `dst`, `destination`[^1]| Mount path. |
701
701
|`ro`,`readonly`| Read-only if set. |
702
702
|`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 stageto 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. |
704
704
|`source`| Subpath in the `from` to mount. Defaults to the root of the `from`. |
705
705
|`mode`| File mode for new cache directory in octal. Default `0755`. |
706
706
|`uid`| User ID for new cache directory. Default `0`. |
0 commit comments