Chainguard Container for google-cloud-sdk
Minimal image with the Google Cloud SDK.
Chainguard Containers are regularly-updated, secure-by-default container images.
Download this Container Image
For those with access, this container image is available on cgr.dev
:
docker pull cgr.dev/ORGANIZATION/google-cloud-sdk:latest
Be sure to replace the ORGANIZATION
placeholder with the name used for your organization's private repository within the Chainguard Registry.
Using Google Cloud SDK
The Chainguard Google Cloud SDK image contains the google-cloud-sdk
tools, including gcloud
, gsutil
, bq
, and more.
The default command is gcloud
.
$ docker run cgr.dev/chainguard/google-cloud-sdk:latest
ERROR: (gcloud) Command name argument expected.
Available command groups for gcloud:
AI and Machine Learning
ai Manage entities in Vertex AI.
ai-platform Manage AI Platform jobs and models.
ml Use Google Cloud machine learning capabilities.
ml-engine Manage AI Platform jobs and models.
notebooks Notebooks Command Group.
API Platform and Ecosystems
api-gateway Manage Cloud API Gateway resources.
apigee Manage Apigee resources.
endpoints Create, enable and manage API services.
recommender Manage Cloud recommendations and recommendation
rules.
services List, enable and disable APIs and services.
Anthos CLI
anthos Anthos command Group.
You can also use gsutil
or bq
:
$ docker run cgr.dev/chainguard/google-cloud-sdk:latest gsutil
Usage: gsutil [-D] [-DD] [-h header]... [-i service_account] [-m] [-o section:flag=value]... [-q] [-u user_project] [command [opts...] args...]
Available commands:
acl Get, set, or change bucket and/or object ACLs
autoclass Configure Autoclass feature
bucketpolicyonly Configure uniform bucket-level access
cat Concatenate object content to stdout
compose Concatenate a sequence of objects into a new composite object.
config Obtain credentials and create configuration file
cors Get or set a CORS JSON document for one or more buckets
cp Copy files and objects
defacl Get, set, or change default ACL on buckets
defstorageclass Get or set the default storage class on buckets
du Display object size usage
hash Calculate file hashes
help Get help about commands and topics
hmac CRUD operations on service account HMAC keys.
iam Get, set, or change bucket and/or object IAM permissions.
kms Configure Cloud KMS encryption
label Get, set, or change the label configuration of a bucket.
lifecycle Get or set lifecycle configuration for a bucket
logging Configure or retrieve logging on buckets
$ docker run cgr.dev/chainguard/google-cloud-sdk:latest bq
/usr/share/google-cloud-sdk/platform/bq/bq.py:18: DeprecationWarning: 'pipes' is deprecated and slated for removal in Python 3.13
import pipes
Python script for interacting with BigQuery.
USAGE: bq.py [--global_flags] <command> [--command_flags] [args]
Any of the following commands:
add-iam-policy-binding, cancel, cp, extract, get-iam-policy, head, help, init,
insert, load, ls, mk, mkdef, partition, query, remove-iam-policy-binding, rm,
set-iam-policy, shell, show, truncate, update, version, wait
add-iam-policy-binding Add a binding to a BigQuery resource's policy in IAM.
Usage:
add-iam-policy-binding --member=<member>
--role=<role> <identifier>
One binding consists of a member and a role, which
are specified with (required) flags.
Examples:
bq add-iam-policy-binding \
--member='user:myaccount@gmail.com' \
--role='roles/bigquery.dataViewer' \
table1
bq add-iam-policy-binding \
--member='serviceAccount:my.service.account@my-
domain.com' \
--role='roles/bigquery.dataEditor' \
project1:dataset1.table1
bq add-iam-policy-binding \
--member='allAuthenticatedUsers' \
--role='roles/bigquery.dataViewer' \
--project_id=proj -t ds.table1
What are Chainguard Containers?
Chainguard Containers are minimal container images that are secure by default.
In many cases, the Chainguard Containers tagged as :latest
contain only an open-source application and its runtime dependencies. These minimal container images typically do not contain a shell or package manager. Chainguard Containers are built with Wolfi, our Linux undistro designed to produce container images that meet the requirements of a more secure software supply chain.
The main features of Chainguard Containers include:
For cases where you need container images with shells and package managers to build or debug, most Chainguard Containers come paired with a -dev
variant.
Although the -dev
container image variants have similar security features as their more minimal versions, they feature additional software that is typically not necessary in production environments. We recommend using multi-stage builds to leverage the -dev
variants, copying application artifacts into a final minimal container that offers a reduced attack surface that won’t allow package installations or logins.
Learn More
To better understand how to work with Chainguard Containers, please visit Chainguard Academy and Chainguard Courses.
In addition to Containers, Chainguard offers VMs and Libraries. Contact Chainguard to access additional products.
Trademarks
This software listing is packaged by Chainguard. The trademarks set forth in this offering are owned by their respective companies, and use of them does not imply any affiliation, sponsorship, or endorsement by such companies.