def get_host_path(volume):
    """
    Get the first part of a docker volume entry.

    >>> docker_volume_string = "./path/on/host:/path/in/container:rw"
    >>> get_host_path(docker_volume_string)
    './path/on/host'
    """
    return volume.split(':')[0]
