How to authenticate google cloud SDK on a docker Ubuntu image?

前端 未结 2 1734
我在风中等你
我在风中等你 2021-01-12 00:59

I am a bit confused about how I can authenticate the gcloud sdk on a docker container. Right now, my docker file includes the following:

#Install the google          


        
2条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-12 01:41

    You can map your local Google SDK credentials into the image. [Source].

    Begin by signing in using:

    $ gcloud auth application-default login
    

    Then add the following to your docker-compose.yaml:

    volumes:
      - ~/.config/:/root/.config
    

提交回复
热议问题