gcloud auth login with Docker does not work as it says in documentation

I’ve followed the Docker instructions from here exactly: https://cloud.google.com/sdk/#install-docker (click Alternative Methods to find Docker instructions).

But when I run:

  • Developing in a Docker image that's under version control
  • Stand up select services with docker-compose
  • Docker : initial installation script fails (ubuntu 13.04 , kernel 3.8+)
  • Docker: how to restore a detached session screen?
  • Docker unable to ping container from host
  • Do I need to create a new lxc(docker)-container for each task I want to sandbox?
  • docker run -t -i --volumes-from gcloud-config google/cloud-sdk gcloud compute instances list
    

    I get:

    docker run -t -i --volumes-from gcloud-config google/cloud-sdk gcloud compute instances list
    ERROR: (gcloud.compute.instances.list) You do not currently have an active account selected.
    Please run:
    
      $ gcloud auth login
    
    to obtain new credentials, or if you have already logged in with a
    different account:
    
      $ gcloud config set account <account name>
    
    to select an already authenticated account to use.
    

    It doesn’t look like it’s picking up that I already authenticated. Any ideas?

  • Why do I see the postgres process when I run top although it is running only inside Docker?
  • “Plugging in” Docker Container to Host Network
  • Pass environment variable from docker to supervisord
  • How to upload next version of code on amazon AWS which has docker instance?
  • debugging containerised python web app
  • How can I keep a docker debian container open?
  • One Solution collect form web for “gcloud auth login with Docker does not work as it says in documentation”

    The link doesn’t point to anything about Docker, could you give correct link.

    The encountered error output is pointing you to follow the two-step Google verification. If you provide :

    gcloud auth login
    

    command, the verification process will start, and then you will be able to manipulate your Google CLoud project

    However this page [1] could guide you installing Docker on Google Cloud.

    [1] – http://docs.docker.com/installation/google/

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.