VMware has offered a beta version of docker volume driver for vSphere, it supports NFS, VSAN, VMFS and other storage. Before this volume driver, virtual machine (VM) is the only way to consume the storage of vSphere. The way the Docker volume driver works is that it is mounted as a volume into the Docker host (either virtual or physical machine). If the docker host crashes, the volume can be remounted to other host. In this way, it can achieve high availability in some scenario, especially when the storage is sharable.
In the article Private Docker Registry Harbor Achieves HA based on Virtual SAN, step-by-step instructions have been given to set up a Docker private registry using open source Harbor. The private registry Harbor is in fact a containerized application, it can hook up an external volume and use it as storage. This is a good example of how to make use of a shared storage provided by vSphere (such as VSAN).
More articles on Harbor: