But you could find many posts about DNS issues or other reasons why people cannot access Docker Hub from China. Unfortunately we cannot help here. It seems to be specific to China.
But I can quote the important part of the comment in the github issue for you:
thaJeztahon Aug 28, 2024
That said, I’m not sure if there’s much that can be done; I know there’s been cases where specific political regions were blocked for legal reasons (Docker being a USA company, but I’m not a lawyer) but, at least to my knowledge, Docker itself does not deny access from China. I know sometimes access has been blocked by the GFW (Great Firewall), and there are some (unofficial) mirrors of Docker Hub in China for that reason (I think AliCloud still has a mirror, possibly others). There’s also been some incidents where DNS was involved; see docker/hub-feedback#2402 (comment) and (more details); docker/hub-feedback#2388
Docker has no intention of blocking access to Docker Hub from China. We have found that many users in China have incorrect DNS records for our servers, or that they are encountering some other sort of network issue between their systems and our servers.