Delay when running docker commands

When I run a docker command there is a 3-5sec delay before it returns an answer.

for example: the image is already cashed so it should just return the result within a fraction of a second.

sudo docker pull nvidia/cuda:11.4.0-base
5-second delay

11.4.0-base: Pulling from nvidia/cuda
Digest: sha256:f0a5937399da5e4efb37fd7b75beb8c484b84dc381243c4b81fc5f9fcad42b66
Status: Image is up to date for nvidia/cuda:11.4.0-base

This is on an ASUS X99 WS E with a 
Intel(R) Xeon(R) CPU E5-4667 v3 @ 2.00GHz and NVME. nothing is running on the system. 
Network speeds are 1Gbps

Docker version 20.10.16, build aa7e414
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 20.04.4 LTS
Release:        20.04
Codename:       focal

PING ( 56(84) bytes of data.
64 bytes from icmp_seq=1 ttl=60 time=2.64 m

PING ( 56(84) bytes of data.
64 bytes from icmp_seq=1 ttl=60 time=2.52 ms

Since you directly instructed the Docker client to pull the image, it needs to check for new versions on Docker Hub. It will not know that you used a tag which never updated (if it is true). So if Docker Hub or a proxy server between your client and Docker Hub is slow, than docker pull will be slow. If you try other docker commands as well and see the seem speed, the comunication between the Docker daemon API and the client can be slow.

I don’t recognize the second IP address. What did you test there?