【问题标题】:Mount Google Cloud Filestore inside a docker container with Debian使用 Debian 在 docker 容器中挂载 Google Cloud Filestore
【发布时间】:2019-07-21 00:40:52
【问题描述】:

我想将 Cloud Filestore 挂载到 Debian 的 docker 容器中。

当我尝试安装它时,我得到:

mount.nfs: timeout set for Wed Feb 27 12:35:07 2019
mount.nfs: trying text-based options 'vers=4.2,addr=10.32.222.111,clientaddr=172.17.0.2'
mount.nfs: mount(2): Operation not permitted
mount.nfs: rpc.statd is not running but is required for remote locking.
mount.nfs: Either use '-o nolock' to keep locks local, or start statd.

它在 Google Cloud 内的 Debian VM 中运行。

我需要打开任何特定的端口或禁用防火墙吗?

我必须做什么才能让挂载成功?

【问题讨论】:

  • 您是尝试将 Filestore 实例安装在 Docker 容器内还是使用 Docker 安装在 VM 内?
  • 我正在我的计算机中进行本地尝试。当我在谷歌云中尝试使用常规 VM(不是 docker)时,它可以工作

标签: debian google-compute-engine nfsclient google-cloud-filestore


【解决方案1】:

Cloud Filestore 是一个 NFS,可用于inside Google Cloud Compute Engine 实例或 Kubernetes。它适用于同一 VPC 中的任何实例。如果您希望在本地计算机上使用它,则需要通过 VPN 连接到此 VPC。您可以使用Cloud VPN 来实现这一点。

【讨论】:

    猜你喜欢
    • 2020-09-07
    • 1970-01-01
    • 2021-09-21
    • 1970-01-01
    • 2017-07-21
    • 2017-08-14
    • 1970-01-01
    • 2016-08-01
    • 2020-01-02
    相关资源
    最近更新 更多