Skip to content

Commit ce22e03

Browse files
committed
ENGDOCS-2553
1 parent 11e8cb3 commit ce22e03

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

content/reference/compose-file/services.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2040,8 +2040,8 @@ The short syntax uses a single string with colon-separated values to specify a v
20402040
The long form syntax lets you configure additional fields that can't be
20412041
expressed in the short form.
20422042

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
20452045
name of a volume defined in the
20462046
[top-level `volumes` key](volumes.md). Not applicable for a tmpfs mount.
20472047
- `target`: The path in the container where the volume is mounted.
@@ -2058,6 +2058,8 @@ expressed in the short form.
20582058
- `tmpfs`: Configures additional tmpfs options:
20592059
- `size`: The size for the tmpfs mount in bytes (either numeric or as bytes unit).
20602060
- `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)
20612063
- `consistency`: The consistency requirements of the mount. Available values are platform specific.
20622064

20632065
> [!TIP]

0 commit comments

Comments
 (0)