This looks like a docker desktop dns config issue
Adding DNS Server into Docker Engine may solve the problem as below:
Step:-
- Open Docker Desktop application
- Go to Setting
- Go to Docker Engine
- Add DNS tag in setting configuration as below
"dns":["1.1.1.1","8.8.8.8"],
--please don't forget to upvote
and Accept as answer
if the reply is helpful--