Uploading files into Google Persistent Disk

8/14/2016

I'm using Google Container Engine to run docker containers that use persistent disks for data storing, the disks are mounted as volumes.

It's all well, except I was wondering if there is a standard way to directly access and upload/download files to/from persistent disks used this way (that is, not attached to a particular VM) or should I run a separate container with FTP or some such using the same volumes in order to do that? The later seems a bit of an overkill for such a trivial task.

-- maga
gcloud
google-cloud-platform
google-kubernetes-engine

1 Answer

8/15/2016

Instead of using persistent disks, you could use Google Cloud Storage. It has a pretty simple CLI and API for both uploading your files and pulling them into the containers that need them.

-- CJ Cullen
Source: StackOverflow