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:
Allie Sadler
2025-10-09 10:28:44 +01:00
committed by GitHub
parent 41810b9686
commit df185b501a

View File

@@ -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. Theyre 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