Use volumes | Docker Documentation
docs.docker.com › storage › volumesThe --mount syntax is more verbose than -v or --volume, but the order of the keys is not significant, and the value of the flag is easier to understand. The type of the mount, which can be bind, volume, or tmpfs. This topic discusses volumes, so the type is always volume. The source of the mount. For named volumes, this is the name of the volume.
Use volumes | Docker Documentation
https://docs.docker.com/storage/volumesVolumes on Docker Desktop have much higher performance than bind mounts from Mac and Windows hosts. In addition, volumes are often a better choice than persisting data in a container’s writable layer, because a volume does not increase the size of the containers using it, and the volume’s contents exist outside the lifecycle of a given container.