question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Does dask-cloudprovider support private dockerhub images?

See original GitHub issue

Does dask-cloudprovider support private docker-hub images (or AWS Elastic Container Registry/ECS)? I tried with no joy:

import dask_cloudprovider
from dask_cloudprovider import FargateCluster
dask_cloudprovider.__version__  # 0.2.0

cluster = FargateCluster(cloudwatch_logs_group="my_log_group",
                         cluster_name_template='test',
                         scheduler_timeout="1 hour",
                         security_groups=["A CUSTOM SECURITY GROUP"],
                         n_workers=1,
                         image="asmith26/test-dask_cloudprovider",  # points to a private dockerhub (works when made public)
                        )

[UPDATED following @martindurant comment, good idea, many thanks 😃]

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:2
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
jacobtomlinsoncommented, Jun 4, 2020

I’m going to reopen this as we currently do not support private image pulls in FargateCluster and it would be good to add that.

ECR is the recommended approach generally as image pulls will be faster. But there is no reason why folks shouldn’t be able to pull from other private repos.

It looks like the credentials need to be stored in secrets manager and then provided in the task definition. I would be tempted to say putting the credentials in secrets manager is out of scope for FargateCluster, but we should add a kwarg for configuring the secret name in the task definition.

https://aws.amazon.com/blogs/compute/introducing-private-registry-authentication-support-for-aws-fargate/

1reaction
jacobtomlinsoncommented, Oct 11, 2021

@myan-numagic could you raise a separate issue for this as you are talking about a different cloud.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Dask Cloud Provider Documentation
To provide GPUs to workers you need to use a GPU ready docker image that has dask-cuda installed and GPU nodes available in...
Read more >
support for dask docker images in private container registry
I was wondering if there is any support for this out yet - might just be me not knowing how to use the...
Read more >
mdurant/dask-kubernetes - Docker Image
This repo hosts some sample configuration to set up Kubernetes containerized environments for interactive cluster computing in Python with Jupyter notebook dask ......
Read more >
Interacting with Docker Hub images - Cloud Build
Additionally, if your build produces images, you can push them to Docker Hub. This page describes how to write build config files to...
Read more >
Dask tutorial - Docs CSC
Dask is a versatile Python library for scalable analytics. ... the work tasks to different workers whenever parallel computing is possible.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found