Not able to pull any docker images --> Get https://registry-1.docker.io/v2/: Forbidden

Get https://registry-1.docker.io/v2/: Forbidden

Getting this when I try to pull any docker images.
I tried setting HTTP_PROXY, HTTPS_PROXY in etc/systemd/system/docker.service.d and also in etc/sysconfig/docker

Even I tried sudo HTTP_PROXY=“proxyhost:proxyport” docker pull hello-world

Nothing works. Any help is very much Appreciated.

What is your context? You are in a corporate network and must use a proxy, otherwise the Internet is not available? Does your proxy require authentication with user/pass?