This is a dockerhub request proxy running on VPS, in case you can't access the official service directly.
- Install
pip3 install -r requirements.txt
- Run
python3 dockerhub-proxy.py
- Config your docker daemon
edit
/etc/docker/daemon.json
file, and add the following config
{
"registry-mirrors": ["http://youip:18888"],
"insecure-registries": ["youip:18888"]
}
- Restart docker service and enjoy