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

can't pull docker image in China #186

Closed
shanlanCoding opened this issue Aug 20, 2023 · 6 comments
Closed

can't pull docker image in China #186

shanlanCoding opened this issue Aug 20, 2023 · 6 comments
Labels
question Further information is requested

Comments

@shanlanCoding
Copy link

I am a user from China due to our national firewall. When I use Docker Pull, I am prompted not found, and I have tried proxy services with the same prompt.
Is there any other way to download images?
In addition, when I use the command line you provided to pull the image, the Docker will prompt "unknown flag: -- pull", as shown in the following figure:
image

Chinese:
我是来自中国的用户,由于我们国家防火墙的原因。我使用docker pull的时候提示not found,我尝试过代理服务同样是这个提示。

请问还有其他的下载镜像的方法吗?

另外我使用你提供的命令行拉取镜像会被docker提示“unknown flag: --pull”,如下图:

@vogler
Copy link
Owner

vogler commented Aug 20, 2023

I am a user from China due to our national firewall. When I use Docker Pull, I am prompted not found, and I have tried proxy services with the same prompt.

I guess you have to figure that out yourself since I can't try anything for you.
Apparently there are mirrors of the Docker registry for access in China:
https://stackoverflow.com/questions/28957330/acclerate-docker-pull-in-china-asia/47569760#47569760
Alternatively, use a proxy or VPN:
https://stackoverflow.com/questions/30434897/unable-to-connect-to-docker-hub-from-china

Docker will prompt "unknown flag: -- pull"

Maybe your Docker version is too old? The flag just makes it pull updates before every run. You can also manually docker pull yourself. However, you're using two different URLs: docker.io in you docker pull and ghcr.io in your docker run command.

Is ghcr.io blocked as well?

@vogler vogler added the question Further information is requested label Aug 20, 2023
@vogler vogler changed the title Pull image not found can't pull docker image in China Aug 20, 2023
@shanlanCoding
Copy link
Author

I am a user from China due to our national firewall. When I use Docker Pull, I am prompted not found, and I have tried proxy services with the same prompt.

I guess you have to figure that out yourself since I can't try anything for you. Apparently there are mirrors of the Docker registry for access in China: https://stackoverflow.com/questions/28957330/acclerate-docker-pull-in-china-asia/47569760#47569760 Alternatively, use a proxy or VPN: https://stackoverflow.com/questions/30434897/unable-to-connect-to-docker-hub-from-china

Docker will prompt "unknown flag: -- pull"

Maybe your Docker version is too old? The flag just makes it pull updates before every run. You can also manually docker pull yourself. However, you're using two different URLs: docker.io in you docker pull and ghcr.io in your docker run command.

Is ghcr.io blocked as well?

Thank you for your reply. Regarding the issue of not being able to pull the image, I have already pulled it through an overseas online docker learning website and pushed it to our domestic private image server, so the first issue has been resolved.

Regarding the issue of 'Docker will prompt' unknown flag: -- pull ', it should be that my Docker version is too old and I do not intend to use this parameter.

Now I have configured config.env and the startup command is: 'Docker run -- rm - p 6080:6080- v fgc:/fgc/data -- env file=/fgc/config.env ec6dd9a5995d node epic games'
Prompt after startup:

Xvfb display server created screen with resolution 1280x1280
VNC is running on port 5900 (no password!)
noVNC (VNC via browser) is running on http://localhost:6080

node[17]: ../src/node_platform.cc:68:std::unique_ptr<long unsigned int> node::WorkerThreadsTaskRunner::DelayedTaskScheduler::Start(): Assertion `(0) == (uv_thread_create(t.get(), start_thread, this))' failed.
 1: 0xbf9890 node::Abort() [node]
 2: 0xbf990e  [node]
 3: 0xc689ae  [node]
 4: 0xc68a91 node::NodePlatform::NodePlatform(int, v8::TracingController*, v8::PageAllocator*) [node]
 5: 0xbb70c3  [node]
 6: 0xbb78db node::Start(int, char**) [node]
 7: 0x7feaba7b0d90  [/lib/x86_64-linux-gnu/libc.so.6]
 8: 0x7feaba7b0e40 __libc_start_main [/lib/x86_64-linux-gnu/libc.so.6]

The screenshot is as follows:
image

This is a screenshot of the content of the env file:
1692582750043

Looking forward to your reply and wishing you a happy life

@vogler
Copy link
Owner

vogler commented Aug 21, 2023

node[17]: ../src/node_platform.cc:68:std::unique_ptr<long unsigned int> node::WorkerThreadsTaskRunner::DelayedTaskScheduler::Start(): Assertion `(0) == (uv_thread_create(t.get(), start_thread, this))' failed.

Looks like you have some limit on the number of processes. You can check ulimit -a. See nodejs/help#1754.
You can try docker run --privileged, see https://docs.docker.com/engine/reference/commandline/run/#privileged.

Some people say the problem was resolved for them by upgrading docker:

What docker version are you using?

@shanlanCoding
Copy link
Author

shanlanCoding commented Aug 21, 2023 via email

@shanlanCoding
Copy link
Author

Thank you for your help. I have already solved my problem. I added the '-- privileged' command as follows:
docker run --rm -p 6080:6080 -v fgc:/fgc/data --env-file=/fgc/config.env --privileged ec6dd9a5995d node epic-games

@Pray3
Copy link

Pray3 commented Jun 15, 2024

-- privileged

-- privileged is work ,Thanks for your help.
i added in docker-compose.yml as follows:

browserless:  # marked
        image: browserless/chrome  # marked
        restart: always  # marked
        privileged: true

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

3 participants