Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add example of authenticating Docker in VMs to use GCP Artifact Registry #424

Merged
merged 1 commit into from
May 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions doc/source/troubleshooting.rst
Original file line number Diff line number Diff line change
Expand Up @@ -79,3 +79,14 @@ and ``extra_bootstrap`` argument where you can provide additional bash commands
cluster = AzureVMCluster(...
docker_image="my_private_image:latest",
extra_bootstrap=["docker login -u 'username' -p 'password'"])

If you need to access Artifact/Container Registry in GCP, one way of doing it would be to authenticate Docker with
`gcloud credential helper <https://cloud.google.com/artifact-registry/docs/docker/authentication#gcloud-helper>`_ by adding extra bootstrap params similar to
the ones below:

.. code-block:: python

from dask_cloudprovider.gcp import GCPCluster
cluster = GCPCluster(...
docker_image=f"{region}-docker.pkg.dev/{project}/{repo}/{image}:{tag}",
extra_bootstrap=[f"gcloud auth configure-docker {region}-docker.pkg.dev"])
Loading