Reference documentation and code samples for the Google Cloud Functions V2 Client class DockerRegistry.
Docker Registry to use for storing function Docker images.
Protobuf type google.cloud.functions.v2.BuildConfig.DockerRegistry
Namespace
Google \ Cloud \ Functions \ V2 \ BuildConfig
Methods
static::name
Parameter
Name
Description
value
mixed
static::value
Parameter
Name
Description
name
mixed
Constants
DOCKER_REGISTRY_UNSPECIFIED
Value: 0
Unspecified.
Generated from protobuf enum DOCKER_REGISTRY_UNSPECIFIED = 0;
CONTAINER_REGISTRY
Value: 1
Docker images will be stored in multi-regional Container Registry
repositories named gcf.
Generated from protobuf enum CONTAINER_REGISTRY = 1;
ARTIFACT_REGISTRY
Value: 2
Docker images will be stored in regional Artifact Registry repositories.
By default, GCF will create and use repositories named gcf-artifacts
in every region in which a function is deployed. But the repository to
use can also be specified by the user using the docker_repository
field.
Generated from protobuf enum ARTIFACT_REGISTRY = 2;
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Google Cloud Functions V2 Client - Class DockerRegistry (2.0.6)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.6 (latest)](/php/docs/reference/cloud-functions/latest/V2.BuildConfig.DockerRegistry)\n- [2.0.5](/php/docs/reference/cloud-functions/2.0.5/V2.BuildConfig.DockerRegistry)\n- [1.7.0](/php/docs/reference/cloud-functions/1.7.0/V2.BuildConfig.DockerRegistry)\n- [1.6.5](/php/docs/reference/cloud-functions/1.6.5/V2.BuildConfig.DockerRegistry)\n- [1.5.0](/php/docs/reference/cloud-functions/1.5.0/V2.BuildConfig.DockerRegistry)\n- [1.4.2](/php/docs/reference/cloud-functions/1.4.2/V2.BuildConfig.DockerRegistry)\n- [1.3.1](/php/docs/reference/cloud-functions/1.3.1/V2.BuildConfig.DockerRegistry)\n- [1.2.0](/php/docs/reference/cloud-functions/1.2.0/V2.BuildConfig.DockerRegistry)\n- [1.1.2](/php/docs/reference/cloud-functions/1.1.2/V2.BuildConfig.DockerRegistry)\n- [1.0.3](/php/docs/reference/cloud-functions/1.0.3/V2.BuildConfig.DockerRegistry) \nReference documentation and code samples for the Google Cloud Functions V2 Client class DockerRegistry.\n\nDocker Registry to use for storing function Docker images.\n\nProtobuf type `google.cloud.functions.v2.BuildConfig.DockerRegistry`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Functions \\\\ V2 \\\\ BuildConfig\n\nMethods\n-------\n\n### static::name\n\n### static::value\n\nConstants\n---------\n\n### DOCKER_REGISTRY_UNSPECIFIED\n\n Value: 0\n\nUnspecified.\n\nGenerated from protobuf enum `DOCKER_REGISTRY_UNSPECIFIED = 0;`\n\n### CONTAINER_REGISTRY\n\n Value: 1\n\nDocker images will be stored in multi-regional Container Registry\nrepositories named `gcf`.\n\nGenerated from protobuf enum `CONTAINER_REGISTRY = 1;`\n\n### ARTIFACT_REGISTRY\n\n Value: 2\n\nDocker images will be stored in regional Artifact Registry repositories.\n\nBy default, GCF will create and use repositories named `gcf-artifacts`\nin every region in which a function is deployed. But the repository to\nuse can also be specified by the user using the `docker_repository`\nfield.\n\nGenerated from protobuf enum `ARTIFACT_REGISTRY = 2;`"]]