问题
i want to create a volume in docker/portainer for my raspberri pi's.
i have set up a NFS server on one of the pi's and connected the other pi so that it can read/write to the NFS. (this is working as expected).
i now want to make a named docker volume so that i can use volume in portainer.
looking at the documentation, i have created the following command: https://docs.docker.com/engine/reference/commandline/volume_create/#driver-specific-options
sudo docker volume create --driver local \
--opt type=nfs \
--opt device=:/mnt/nfs/volumes/minio-config \
minio-config
but when i look at the volume in portainer, it shows the mount point being set to: /var/lib/docker/volumes/minio-config/_data
to be thorough, i have tried creating the volume from within portainer and i still get the same result.
来源:https://stackoverflow.com/questions/49646031/docker-create-volume-with-mountpoint