Docker Create Volume With Mountpoint

廉价感情. 提交于 2019-12-24 20:40:33

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!