docker pull gcr.io/google.com/cloudsdktool/cloud-sdk:latest && \
docker run --rm -it -v ${HOME}/.config/gcloud:/root/.config/gcloud \
gcr.io/google.com/cloudsdktool/cloud-sdk /bin/bash
Based on commit ca96371e4d2d2176e8b2c3f5b656b5d92973479e