Uploading/Pushing data to Google Cloud Volume

二次信任 提交于 2019-12-23 01:37:18

问题


I have a docker image on Google Container engine with volumes attached to it. Is there a way to get files from my local filesytem to the attached volumes?


回答1:


I took the following steps to achieve the above:

  1. Create the directory where the volume should be mounted in the instance.
  2. Format the volume and mount it on the directory created above.
  3. Give the directory write permissions(chmod a+w )
  4. Create the fstab entriy for mounting the volume.

You can then use gcloud compute copy-files to copy files from your local filesystem to the volume, which is mounted on a directory on the instance.



来源:https://stackoverflow.com/questions/37572848/uploading-pushing-data-to-google-cloud-volume

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