Mount the nfs share with windows docker

Expected behavior

when we are mounting the nfs share as volume we are getting following issue.
docker volume create --driver local --opt type=nfs --opt o=addr=145.99.63.22,rw --opt device=:/opt/data/softwares nfs-share

Actual behavior

it has to create the volume

Information

Error response from daemon: create nfs-share: options are not supported on this platform

  • the output of:
    • DockerDebugInfo.ps1 using Powershell on Windows
  • a reproducible case if this is a bug, Dockerfiles FTW
  • page URL if this is a docs issue or the name of a man page
  • host distribution and version ( OSX 10.10.x, OSX 10.11.x, Windows, etc )

Steps to reproduce the behavior

  1. docker volume create --driver local --opt type=nfs --opt o=addr=145.99.63.22,rw --opt device=:/opt/data/softwares nfs-share run this command in windows docker

Did you find a solution to this? Getting the exact same error on windows server 2019 docker version 19.03.5. Happens both with volume command as well as when trying to mount volume via swarm deployment.