Can not pull image

Environment:
WSL2 on windows11.
Wsl2 OS: Ubuntu 22.04 LTS

Running docker under ubuntu, wsl2.

Error:
Docker pull generate error:
Error response from daemon: Get “https://registry-1.docker.io/v2/”: proxyconnect tcp: dial tcp: lookup : no such host

Note:
Configure dns
resove.conf: nameserver 8.8.8.8

Any help thanks in advance!