mirror of
https://github.com/docker/docs.git
synced 2026-03-27 14:28:47 +07:00
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
This commit is contained in:
@@ -120,6 +120,10 @@ volumes:
|
||||
|
||||
Compose sets `com.docker.compose.project` and `com.docker.compose.volume` labels.
|
||||
|
||||
> [!NOTE]
|
||||
>
|
||||
> 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.
|
||||
|
||||
### `name`
|
||||
|
||||
`name` sets a custom name for a volume. The name field can be used to reference volumes that contain special
|
||||
|
||||
Reference in New Issue
Block a user