我正在尝试在本地计算机上的docker compose上安装NFS卷(Ubuntu 20)
volumes:
nfsmount:
driver: local
driver_opts:
type: nfs
o: addr=172.17.0.1,rw,nolock,hard,nointr,nfsvers=3
device: ":$PWD/myfolder"
当我运行docker-compose up -d时,出现此错误:
mount :/home/myuser/Documents/myfolder:/var/lib/docker/volumes/my_project_nfsmount/_data, data: addr=172.17.0.1,nolock,hard,nointr,nfsvers=3: operation not supported
我已经安装了nfs-common和nfs-client
docker版本:19.03.8 docker-compose版本:1.25.4