解决登录Docker Desktop后Unable to pull postgres:latest (HTTP code 401) unexpected - authentication xxx报错

博主刚刚安装好Docker Desktop在拉取镜像时出现了这个报错

解决方法

打开命令行,输入:

docker login

然后按照提示,输入与docker desktop相同的用户名username与密码password,回车即可看到:

Login Succeeded

然后就可以操控Docker Desktop拉取镜像什么的了

问题解析

参考链接https://github.com/docker/hub-feedback/issues/935,上面说:

Your email and your docker id are 2 separate things. It looks like you can use your email to log in the site but not the CLI. To get your docker id log into https://www.docker.com/ with your email and password. On the top right is docker id. Use that in the CLI and you’ll probably be fine.

就意味着我们不但要登录Docker Desktop,还需要登录CLI命令行

你可能感兴趣的:(解决登录Docker Desktop后Unable to pull postgres:latest (HTTP code 401) unexpected - authentication xxx报错)