简体   繁体   English

无法在 Ubuntu Docker Droplet 上对 docker pull registry(数字海洋)进行身份验证

[英]Can't Authenticate on Ubuntu Docker Droplet for docker pull registry (Digital Ocean)

Background:背景:

  • i am using digital ocean ubuntu docker droplet我正在使用数字海洋 ubuntu docker droplet
  • i have pushed my image to digital ocean container registry我已将我的图像推送到数字海洋集装箱注册处

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.

相关问题 如何在Digital Ocean Droplet上运行docker映像? - How to run a docker image on Digital Ocean droplet? 如何使用docker-compose确认现有的数字海洋飞沫? - How to acknowledge existing digital ocean droplet with docker-compose? Docker-在Digital Ocean Droplet上部署的wordpress-wp内容在哪里? - Docker - wordpress deployed on Digital Ocean Droplet - where is the wp-content? 如何在Digital Ocean Droplet上使用浮动IP地址配置Docker? - How to configure docker with floating ip address on Digital Ocean droplet? 域名不适用于 Docker 和 Nginx 的 Digital Ocean 液滴 - Domain name not working on Digital Ocean droplet with Docker and Nginx Digital Ocean上的“无法访问此站点” Docker容器 - “This site can’t be reached” Docker container on Digital Ocean 数字海洋 docker 硒 - digital ocean docker selenoid 将本地构建的 docker 镜像推送到 Digital Ocean Container Registry - Push locally built docker images to Digital Ocean Container Registry 无法使用Digital Ocean Droplet在Docker上使用Shiny进行端口映射 - Cannot get port-mapping to work with Shiny on Docker with Digital Ocean droplet 创建react app + Gitlab CI + Digital Ocean Drop-管道成功,但之后立即删除Docker容器 - Create react app + Gitlab CI + Digital Ocean droplet - Pipeline succeeds but Docker container is deleted right after
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM