Skip to content

How can I change image registry? #2797

Answered by black-roland
sky96111 asked this question in Q&A
Discussion options

You must be logged in to vote

@sky96111 @yiqian987 Recently I found a hack to override configuration in /etc/docker/daemon.json but I'm not sure if this is relevant to your case. Through daemon.json it's possible to set docker.nju.edu.cn as registry mirror but that wouldn't work for the ghcr.io registry (only for the primary one at hub.docker.com).

daemon.json also allows you to configure a proxy server. Are there any proxies in China that you can use to access ghcr.io?

Anyway, the hack idea is to use an udev rule to mount daemon.json on top of the read-only one. In HAOS you can configure custom udev rules using a USB stick so you need to create 2 files on the USB stick (or inside CONFIG):

udev/00-docker-mirrors-work…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@sky96111
Comment options

Answer selected by sky96111
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants