Skip to content

Commit e97a6fb

Browse files
vertex-sdk-botcopybara-github
authored andcommitted
docs: add a hint to auth Docker to the LocalModel push_image docstring.
PiperOrigin-RevId: 510204637
1 parent 40749af commit e97a6fb

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

google/cloud/aiplatform/prediction/local_model.py

+9
Original file line numberDiff line numberDiff line change
@@ -491,6 +491,15 @@ def push_image(self) -> None:
491491
492492
See https://cloud.google.com/artifact-registry/docs/manage-repos#create for more details.
493493
494+
If you hit a "Permission artifactregistry.repositories.uploadArtifacts denied" error,
495+
set up an authentication for Docker.
496+
497+
.. code-block:: bash
498+
499+
gcloud auth configure-docker {REPOSITORY}
500+
501+
See https://cloud.google.com/artifact-registry/docs/docker/authentication for mode details.
502+
494503
Raises:
495504
ValueError: If the image uri is not a container registry or artifact registry
496505
uri.

0 commit comments

Comments
 (0)