远程主机上的 Docker 拒绝挂载请求:未导出

远程主机上的 Docker 拒绝挂载请求:未导出

我有一台 Windows 主机(10.10.1.28),我正在尝试连接到 NFS 共享(10.10.1.17)以获取 docker 卷。

我的 NFS 导出 /etc/exports

# This file is auto-generated by openmediavault (https://www.openmediavault.org)
# WARNING: Do not edit this file, your changes will get lost.

# /etc/exports: the access control list for filesystems which may be exported
#               to NFS clients.  See exports(5).

/export/InterfereFlatThickThose 10.10.1.0/24(fsid=c084acae-b3bc-4ce6-bb15-502ae8834d82,rw,sync,insecure,root_squash,no_subtree_check)

# NFSv4 - pseudo filesystem root
/export 10.10.1.0/24(ro,fsid=0,root_squash,no_subtree_check,hide)

附有出口清单

Export list for localhost:
/export                         10.10.1.0/24
/export/InterfereFlatThickThose 10.10.1.0/24

连接Docker卷:

interfere:
    name: interferename
    driver: local  
    driver_opts:
        type: nfs
        o: nfsvers=4,addr=10.10.1.17
        device: ":/InterfereFlatThickThose/"

在 /var/log/syslog 中给出以下几行

Apr 20 17:18:56 cmf-nfs rpc.mountd[33222]: refused mount request from 10.10.1.28 for /InterfereFlatThickThose/ (/): not exported

答案1

看起来,对于安装从 OpenMediaVault 共享的某些内容并尝试从 Windows 上的 Docker 访问,这似乎是可行的。

interfere:
    name: interferename
    driver: local  
    driver_opts:
        type: nfs
        o: addr=10.10.1.17
        device: ":/export/InterfereFlatThickThose/"

相关内容