diff --git a/google/cloud/aiplatform/prediction/local_model.py b/google/cloud/aiplatform/prediction/local_model.py index 58d2f85676..c23d205e46 100644 --- a/google/cloud/aiplatform/prediction/local_model.py +++ b/google/cloud/aiplatform/prediction/local_model.py @@ -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.