Skip to content

Commit df185b5

Browse files
authored
Compose volume clarity (#23531)
<!--Delete sections as needed --> ## Description addresses https://docker.slack.com/archives/C04BMTUC41E/p1759908356837639 ## Related issues or tickets <!-- Related issues, pull requests, or Jira tickets --> ## Reviews <!-- Notes for reviewers here --> <!-- List applicable reviews (optionally @tag reviewers) --> - [ ] Technical review - [ ] Editorial review - [ ] Product review
1 parent 41810b9 commit df185b5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

content/reference/compose-file/volumes.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,10 @@ volumes:
120120

121121
Compose sets `com.docker.compose.project` and `com.docker.compose.volume` labels.
122122

123+
> [!NOTE]
124+
>
125+
> Labels defined here apply to named volumes only. They’re stored on the volume resource and visible via `docker volume inspect`. They do not apply to bind mounts and do not change mount semantics.
126+
123127
### `name`
124128

125129
`name` sets a custom name for a volume. The name field can be used to reference volumes that contain special

0 commit comments

Comments
 (0)