Reputation: 174
I am trying to download some files from google cloud storage but I don't know nor how to login inside the dockerfile build neither if I need to create an IAM role for this specific task.
Can you please provide some help? Thank you!
Upvotes: 2
Views: 4496
Reputation: 12155
You can use gsutil from within docker. To try this first in 'interactive' mode you could do something like the following:
docker run -it google/cloud-sdk:alpine
gcloud auth login
gsutil -m cp /some-file gs://your-bucket
Upvotes: 2