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
Copy file name to clipboardExpand all lines: content/reference/compose-file/services.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2040,8 +2040,8 @@ The short syntax uses a single string with colon-separated values to specify a v
2040
2040
The long form syntax lets you configure additional fields that can't be
2041
2041
expressed in the short form.
2042
2042
2043
-
- `type`: The mount type. Either `volume`, `bind`, `tmpfs`, `npipe`, or `cluster`
2044
-
- `source`: The source of the mount, a path on the host for a bind mount, or the
2043
+
- `type`: The mount type. Either `volume`, `bind`, `tmpfs`, `image`, `npipe`, or `cluster`
2044
+
- `source`: The source of the mount, a path on the host for a bind mount, a Docker image reference for an image mount, or the
2045
2045
name of a volume defined in the
2046
2046
[top-level `volumes` key](volumes.md). Not applicable for a tmpfs mount.
2047
2047
- `target`: The path in the container where the volume is mounted.
@@ -2058,6 +2058,8 @@ expressed in the short form.
2058
2058
- `tmpfs`: Configures additional tmpfs options:
2059
2059
- `size`: The size for the tmpfs mount in bytes (either numeric or as bytes unit).
2060
2060
- `mode`: The file mode for the tmpfs mount as Unix permission bits as an octal number. Introduced in Docker Compose version [2.14.0](/manuals/compose/releases/release-notes.md#2260).
2061
+
- `image`: Configures additional image options:
2062
+
- `subpath`: Path inside the source image to mount instead of the image root. Available in [Docker Compose version 2.35.0](/manuals/compose/releases/release-notes/#2350)
2061
2063
- `consistency`: The consistency requirements of the mount. Available values are platform specific.
0 commit comments