Skip to content

Commit

Permalink
docs: add a hint to auth Docker to the LocalModel push_image docstring.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 510204637
  • Loading branch information
vertex-sdk-bot authored and Copybara-Service committed Feb 16, 2023
1 parent 40749af commit e97a6fb
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions google/cloud/aiplatform/prediction/local_model.py
Expand Up @@ -491,6 +491,15 @@ def push_image(self) -> None:
See https://cloud.google.com/artifact-registry/docs/manage-repos#create for more details.
If you hit a "Permission artifactregistry.repositories.uploadArtifacts denied" error,
set up an authentication for Docker.
.. code-block:: bash
gcloud auth configure-docker {REPOSITORY}
See https://cloud.google.com/artifact-registry/docs/docker/authentication for mode details.
Raises:
ValueError: If the image uri is not a container registry or artifact registry
uri.
Expand Down

0 comments on commit e97a6fb

Please sign in to comment.