docker login information stored in the .docker file in the home directory folder, view
cat ~/.docker/config.json { "auths": { "gcyimgs.mydomain.com:50000": { "auth": "*************" } }, "HttpHeaders": { "User-Agent": "Docker-Client/18.09.6 (linux)" } }
Local host file may be modified, such that a fixed point gcyimgs.mydomain.com ip address.
sudo vim /etc/hosts # add local docker hub addr 192.168.0.10 gcyimgs.mydomain.com
Then restart your network so that the host take effect
sudo /etc/init.d/networking restart
docker login again
docker login -u[username] -p[password] gcyimgs.mydomain.com:50000