Unable to find image ‘xxx’ locally

Setting DNS 8.8.8.8

CentOS

sudo vi /etc/resolv.conf
/etc/resolv.conf
nameserver 8.8.8.8