Mantenha tudo organizado com as coleções
Salve e categorize o conteúdo com base nas suas preferências.
Crie sua própria imagem do Docker do gcloud, incluindo docker e docker-buildx
Para receber a dependência docker e / ou docker-buildx na imagem :alpine da gcloud,
use o seguinte Dockerfile:
FROMdocker:28.2.2asstatic-docker-source#getlatestdocker
FROMgcr.io/google.com/cloudsdktool/google-cloud-cli:alpine# Comment the line below if you don't want `docker`COPY--from=static-docker-source/usr/local/bin/docker/usr/local/bin/docker
# Comment the line below if you don't want `docker-buildx`COPY--from=static-docker-source/usr/local/libexec/docker/cli-plugins/docker-buildx/usr/local/libexec/docker/cli-plugins/docker-buildx
Para ter a dependência docker e / ou docker-buildx na imagem :debian_component_based da gcloud, use o seguinte Dockerfile:
FROMdocker:28.2.2asstatic-docker-source#getlatestdocker
FROMgcr.io/google.com/cloudsdktool/google-cloud-cli:debian_component_based# Comment the line below if you don't want `docker`COPY--from=static-docker-source/usr/local/bin/docker/usr/local/bin/docker
# Comment the line below if you don't want `docker-buildx`COPY--from=static-docker-source/usr/local/libexec/docker/cli-plugins/docker-buildx/usr/local/libexec/docker/cli-plugins/docker-buildx
Para ter a dependência docker e / ou docker-buildx na imagem :latest da gcloud, use o seguinte Dockerfile:
FROMdocker:28.2.2asstatic-docker-source#getlatestdocker
FROMgcr.io/google.com/cloudsdktool/google-cloud-cli:latest# Comment the line below if you don't want `docker`COPY--from=static-docker-source/usr/local/bin/docker/usr/local/bin/docker
# Comment the line below if you don't want `docker-buildx`COPY--from=static-docker-source/usr/local/libexec/docker/cli-plugins/docker-buildx/usr/local/libexec/docker/cli-plugins/docker-buildx
Para ter a dependência docker e / ou docker-buildx na imagem :slim da gcloud, use o seguinte Dockerfile:
FROMdocker:28.2.2asstatic-docker-source#getlatestdocker
FROMgcr.io/google.com/cloudsdktool/google-cloud-cli:slim# Comment the line below if you don't want `docker`COPY--from=static-docker-source/usr/local/bin/docker/usr/local/bin/docker
# Comment the line below if you don't want `docker-buildx`COPY--from=static-docker-source/usr/local/libexec/docker/cli-plugins/docker-buildx/usr/local/libexec/docker/cli-plugins/docker-buildx
Criar sua própria imagem Docker do gcloud com make
Para receber make na imagem :latest da gcloud,
use o seguinte Dockerfile:
[[["Fácil de entender","easyToUnderstand","thumb-up"],["Meu problema foi resolvido","solvedMyProblem","thumb-up"],["Outro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Informações incorretas ou exemplo de código","incorrectInformationOrSampleCode","thumb-down"],["Não contém as informações/amostras de que eu preciso","missingTheInformationSamplesINeed","thumb-down"],["Problema na tradução","translationIssue","thumb-down"],["Outro","otherDown","thumb-down"]],["Última atualização 2025-08-25 UTC."],[],[],null,["# Example Dockerfiles\n\nBuild your own gcloud Docker Image including `docker` and `docker-buildx`\n-------------------------------------------------------------------------\n\n- To get `docker` and / or `docker-buildx` dependency on the gcloud `:alpine` image, use the following Dockerfile:\n\n FROM docker:28.2.2 as static-docker-source # get latest docker\n FROM gcr.io/google.com/cloudsdktool/google-cloud-cli:alpine\n # Comment the line below if you don't want `docker`\n COPY --from=static-docker-source /usr/local/bin/docker /usr/local/bin/docker\n # Comment the line below if you don't want `docker-buildx`\n COPY --from=static-docker-source /usr/local/libexec/docker/cli-plugins/docker-buildx /usr/local/libexec/docker/cli-plugins/docker-buildx\n\n- To get `docker` and / or `docker-buildx` dependency on the gcloud `:debian_component_based` image, use the following Dockerfile:\n\n FROM docker:28.2.2 as static-docker-source # get latest docker\n FROM gcr.io/google.com/cloudsdktool/google-cloud-cli:debian_component_based\n # Comment the line below if you don't want `docker`\n COPY --from=static-docker-source /usr/local/bin/docker /usr/local/bin/docker\n # Comment the line below if you don't want `docker-buildx`\n COPY --from=static-docker-source /usr/local/libexec/docker/cli-plugins/docker-buildx /usr/local/libexec/docker/cli-plugins/docker-buildx\n\n- To get `docker` and / or `docker-buildx` dependency on the gcloud `:latest` image, use the following Dockerfile:\n\n FROM docker:28.2.2 as static-docker-source # get latest docker\n FROM gcr.io/google.com/cloudsdktool/google-cloud-cli:latest\n # Comment the line below if you don't want `docker`\n COPY --from=static-docker-source /usr/local/bin/docker /usr/local/bin/docker\n # Comment the line below if you don't want `docker-buildx`\n COPY --from=static-docker-source /usr/local/libexec/docker/cli-plugins/docker-buildx /usr/local/libexec/docker/cli-plugins/docker-buildx\n\n- To get `docker` and / or `docker-buildx` dependency on the gcloud `:slim` image, use the following Dockerfile:\n\n FROM docker:28.2.2 as static-docker-source # get latest docker\n FROM gcr.io/google.com/cloudsdktool/google-cloud-cli:slim\n # Comment the line below if you don't want `docker`\n COPY --from=static-docker-source /usr/local/bin/docker /usr/local/bin/docker\n # Comment the line below if you don't want `docker-buildx`\n COPY --from=static-docker-source /usr/local/libexec/docker/cli-plugins/docker-buildx /usr/local/libexec/docker/cli-plugins/docker-buildx\n\nBuild your own gcloud Docker Image with `make`\n----------------------------------------------\n\n- To get `make` on the gcloud `:latest` image, use the following Dockerfile:\n\n FROM gcr.io/google.com/cloudsdktool/google-cloud-cli:latest\n RUN apt-get update -qqy && apt-get -qqy upgrade && apt-get install -qqy make\n\n- To get `make` on the gcloud `:debian_component_based` image, use the following Dockerfile:\n\n FROM gcr.io/google.com/cloudsdktool/google-cloud-cli:debian_component_based\n RUN apt-get update -qqy && apt-get -qqy upgrade && apt-get install -qqy make\n\nBuild your own gcloud Docker Image with Java 21\n-----------------------------------------------\n\n- To upgrade to Java 21 on the gcloud `:latest` image, use the following Dockerfile:\n\n FROM gcr.io/google.com/cloudsdktool/google-cloud-cli:latest\n RUN curl -O https://download.oracle.com/java/21/latest/jdk-21_linux-x64_bin.deb && \\\n apt install ./jdk-21_linux-x64_bin.deb\n\n- To upgrade to Java 21 on the gcloud `:emulators` image, use the following Dockerfile:\n\n FROM gcr.io/google.com/cloudsdktool/google-cloud-cli:emulators\n RUN curl -O https://download.oracle.com/java/21/latest/jdk-21_linux-x64_bin.deb && \\\n apt install ./jdk-21_linux-x64_bin.deb\n\n- To upgrade to Java 21 on the gcloud `:debian_component_based` image, use the following Dockerfile:\n\n FROM gcr.io/google.com/cloudsdktool/google-cloud-cli:debian_component_based\n RUN curl -O https://download.oracle.com/java/21/latest/jdk-21_linux-x64_bin.deb && \\\n apt install ./jdk-21_linux-x64_bin.deb"]]