Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions content/reference/compose-file/volumes.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down