Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Bash alias to run Google gcloud via Docker
# Bash alias to run Google gcloud via Docker
alias gcloud="docker run --workdir=/home/cloudsdk/work --user cloudsdk:cloudsdk \
--mount type=bind,source=$PWD,target=/home/cloudsdk/work \
--mount type=volume,source=gcloud_config,target=/home/cloudsdk/.config \
--rm -ti gcr.io/google.com/cloudsdktool/cloud-sdk:slim gcloud"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment