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

Connection error to docker image #422

Open
Hanson13 opened this issue Oct 11, 2024 · 2 comments
Open

Connection error to docker image #422

Hanson13 opened this issue Oct 11, 2024 · 2 comments
Labels
question Further information is requested

Comments

@Hanson13
Copy link

❓ Questions and Help

We sincerely suggest you to carefully read the documentation. After that, if you still feel puzzled, please describe the question clearly under this issue.

Perhaps due to the network limit of my institution, there reports connection error when I run the demo

rdagent fin_factor

Error

2024-10-11 16:51:41.222 | INFO     | rdagent.utils.env:prepare:193 - Building the image from dockerfile: /home/user/.conda/envs/rdagent/lib/python3.10/site-packages/rdagent/scenarios/qlib/docker
error: Get "https://registry-1.docker.io/v2/": dial tcp [128.121.243.76:443](http://128.121.243.76:443/): connect: connection refused

Is there any method to access and use offline docker images?
Many thanks!

@Hanson13 Hanson13 added the question Further information is requested label Oct 11, 2024
@TPLin22
Copy link
Collaborator

TPLin22 commented Oct 12, 2024

Hi,
You can try some of the solutions mentioned in docker/cli#2618 and see if they work.

@Hanson13
Copy link
Author

Hi @TPLin22 , thanks for your kind reply!
I tried the solutions in the link but it doesn't work. The cause of the problem should be at

            resp_stream = client.api.build(
                path=str(self.conf.dockerfile_folder_path), tag=self.conf.image, network_mode=self.conf.network
            )

And here is the parameters for self.conf

QlibDockerConf(build_from_dockerfile=True, \
dockerfile_folder_path=PosixPath('/home/user/.conda/envs/rdagent/lib/python3.10/site-packages/rdagent/scenarios/qlib/docker'), image='local_qlib:latest', mount_path='/workspace/qlib_workspace/', default_entry='qrun conf.yaml', extra_volumes={PosixPath('/home/jyh/.qlib'): '/root/.qlib/'}, \
network='bridge', shm_size='16g', enable_gpu=True)

I wonder if there are any other method to build docker image locally? Or any URL where I can download the built docker image on one another machine and transfer it to my working machine?

Thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants