Assuming you installed docker machine and a docker build with identity support locally, and a Google Cloud Platform Project.
PROJECT=my-gcp-project
ZONE=us-central1-f
machine create --driver google --google-project ${PROJECT} --google-zone ${ZONE} \
gcp-machine
export DOCKER_HOST=$(machine url)
export DOCKER_AUTH=identity
docker version