gcloud config set project PROJECT_ID
gcloud cloud-shell ssh
Login, that would create the volume with credentials:
docker run -ti --name gcloud-config google/cloud-sdk gcloud auth login
Create an script in your $PATH
named gcloud
with:
#!/bin/sh
docker run --platform linux/amd64 --rm -ti --volumes-from gcloud-config -w /tmp/current -v $(pwd):/tmp/current google/cloud-sdk gcloud $@
And another one named gsutil
with:
#!/bin/sh
docker run --platform linux/amd64 --rm --volumes-from gcloud-config -w /tmp/current -v $(pwd):/tmp/current google/cloud-sdk gsutil "$@"