I am unable to pull the image from the dockerhub on the server, it has always been 'timeout'

How can I configure my dockerhub repository so that I can pull images from the dockerhub normally? I am a user in Chinese Mainland. It seems that many people in our region have encountered this problem recently. Is there a good solution?

@meyay had an answer recently which may help you too

This is useful to me, thank you for your answer