[英]Can't Authenticate on Ubuntu Docker Droplet for docker pull registry (Digital Ocean)
Background:背景:
Issue is I run docker pull $registry (obviously url) and it says unauthorized: authentication required
.问题是我运行 docker pull $registry (显然是 url),它说
unauthorized: authentication required
。 It looks in /manifests/latest
which isnt something I found much on.它看起来在
/manifests/latest
,这不是我发现的东西。
I have also gone through digital oceans registry login tutorial (and double checked) on the droplet using doctl registry login
and authenticated it with the token from digital ocean.我还使用
doctl registry login
在液滴上完成了数字海洋注册表登录教程(并仔细检查),并使用来自数字海洋的令牌对其进行了身份验证。 This works as I have been able to create and delete droplets from the droplet.这是有效的,因为我已经能够从液滴中创建和删除液滴。
Where do I look now?我现在在哪里看? I am out of ideas apart from continuing to poke around!
除了继续闲逛,我已经没有想法了! Help greatly appreciated as always.
一如既往地非常感谢帮助。
edit: running doctl account get
returns my digital ocean account as expected.编辑:运行
doctl account get
按预期返回我的数字海洋帐户。
Ok.好的。 So after almost 2 hours of poking and then posing this question to the community I thought I would give it 5 more minutes.
因此,经过近 2 个小时的探索,然后向社区提出这个问题,我想我会再给它 5 分钟。
The solution was to run sudo snap connect doctl:dot-docker
.解决方案是运行
sudo snap connect doctl:dot-docker
。 My understanding is this is a personal-files connection.我的理解是这是个人文件连接。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.