Custom docker volume plugin v2

Expected behavior

Hello, i am developinng a docker plugin for volumes in particular EBS. In the mount path, i return the mountpoint “/mnt/vol-xxxx” that is the path inside my plugin. The ECS task should start without problem.

Actual behavior

The ECS task start and then it dies with exit error 1. I didn’t see any error on my code than i saw in the documentation that in the plugin version v1 i should use the mount point in the host EC2, not in the plugin. So my questions are:

  1. the problem is that i am returning the mount point of the plugin when he expects the mount point of the EC2?
  2. how can i set the version of the plugin to v2? in the config.json file the documentation says that the interface parameter expect only docker volume v1

thank you for your help