Mount Google Cloud Filestore inside a docker container with Debian

岁酱吖の 提交于 2021-01-28 08:30:45

问题


I want to mount Cloud Filestore inside a docker container which is Debian.

When I try to mount it I get:

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.

It's running in a Debian VM inside Google Cloud.

Is there any specific port I need to open or firewall to disable ?

What do I have to do in order for the mount to succeed ?


回答1:


Cloud Filestore is an NFS to be used inside Google Cloud Compute Engine instances or Kubernetes. It works for any instance in the same VPC. If you wish to use it in your local computer, you will need to connect to this VPC trough a VPN. You could use Cloud VPN to achieve this.



来源:https://stackoverflow.com/questions/54902989/mount-google-cloud-filestore-inside-a-docker-container-with-debian

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