Got AuthorizedOnly when pulling images behind corporate proxy

Hi All,

I’ve trying to get docker working behind a corporate proxy. Following the document here:

Basically adding:




But when running “docker pull hello-world” or “sudo docker pull hello-world”, got this error:

centos7 ~]$ docker pull hello-world
Using default tag: latest
Trying to pull repository docker. io/library/hello-world …
Pulling repository docker. io/library/hello-world
Error while pulling image: Get https: / AuthorizedOnly

Looks around the web, but couldn’t find any “AuthorizedOnly” error reported before.

Any help appreciated!