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:

  • How docker volume container (mounted a host directory ) used in compose file version 2
  • Automatically run a script when HBase master Docker container finishes initializing
  • How to .bashrc for root in Docker
  • How to hot deploy Java EE applications in Docker containers
  • How is docker able to mount a volume from docker client into a docker container running on docker host?
  • Docker tool or feature to define per-project container aliases?
  • 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?

  • Running Docker on windows 8, FORBIDDEN ERROR
  • docker - in production - HA
  • Can not pull/push images after update docker to 1.12
  • EC2 Container Service Networking
  • How to change container configuration without Dockerfile?
  • add rethinkdb in docker-compose
  • 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.