Docker does not work behind proxy
try this,
$ sudo vim /etc/resolv.conf
#add these lines on top and above one for home router…
nameserver 8.8.8.8
nameserver 8.8.4.4
After saving the /etc/resolv.conf
file.
run $ sudo systemctl daemon-reload
for reloading daemon process.
Then restart your docker :
run $ sudo systemctl restart docker