问题标签 [docker-registry]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
238 浏览

docker - 从 Windows 中的 bootdocker 登录到 docker hub 注册表时出现问题

我已经为 Windows 安装了 boot2docker,然后我创建了我的应用程序的映像并尝试将其推送到我的 docker hub 注册表公共 repo。运行命令“docker push”时,它要求我登录,然后提示我输入用户名。当我输入我的用户名它没有做任何事情。我做错了什么吗?

0 投票
2 回答
906 浏览

docker - Python3 utf8 编解码器在 Docker ubuntu:trusty 中未按预期解码

下面的事情真的让我很烦恼,我笔记本电脑上的 python 版本和 Docker 的 ubuntu:trusty 图像中的 python 版本使用它们的编解码器打印不同的结果,这是什么原因?例如,我笔记本电脑上的 python3(ubuntu,trusty):

Docker ubuntu 上的 python3:最新:

我可以在 Docker 的 ubuntu 上制作 python3 编解码器:trusty decode b'\xe2\x80\x99' as '''?

0 投票
1 回答
114 浏览

docker - 在单个 Docker 存储库中存储不同的 Docker 映像

我可以通过使用不同的标签将完全不同的图像存储在单个 Docker 存储库中吗?

例如username/myrepo:softwareusername/myrepo:code

如果是这样,怎么做?

0 投票
8 回答
83468 浏览

docker - Docker Registry 2.0 - 如何删除未使用的图像?

我们将私有 docker 注册表更新为官方 Registry 2.0。此版本现在可以删除由标签标识的 docker 图像(请参阅https://docs.docker.com/registry/spec/api/#deleting-an-image),但我仍然看不到清理旧图像的方法。

由于我们的 CI 服务器不断生成新图像,我需要一种方法来从私有注册表中删除不再由命名标记标识的所有图像。

如果没有内置方法来实现这一点,我认为自定义脚本可能会起作用,但我也没有看到 v2 API 方法来列出图像的所有存储主题标签。

如何保持我的私人注册表清洁?有什么提示吗?

0 投票
1 回答
8169 浏览

macos - 为什么推送 Docker 映像失败并显示“dial tcp:lookup cdn-registry-1.docker.io on 192.168.1.1:53: read udp 192.168.1.1:53: i/o timeout”?

我正在推送到 Docker Hub 上的私有 Docker 存储库,但我不断收到此错误:

我在 Mac OS 上使用boot2docker. 在运行push命令 7 次以上之后,它终于成功完成了,但我想我还是会问。

有人以前看过这个吗?提示如何解决?

0 投票
2 回答
977 浏览

docker - 如何通过 docker hub api 创建 docker 私有存储库?

我可以通过 docker hub api 创建公共存储库。我怎样才能私有存储库?

我的形象是:

0 投票
2 回答
1685 浏览

docker - 镜像私有 docker 注册表

目前推荐的镜像私有 Docker 注册表的方法是什么?

镜像功能由官方 docker-registry 镜像提供,但仅适用于公共注册表。请参阅文档:“请注意,镜像仅适用于公共注册表。您不能为私有注册表创建镜像。”

我的用例:一个更大的开发团队在网络有限的办公室工作。他们只从注册表中提取 docker 镜像。推送是偶尔的,由托管在 AWS 中的 Jenkins 盒子处理。他们使用的大多数图像都位于我们受密码保护的私人注册表中(通过 https 提供服务)。因此,在本地网络中的机器上镜像/缓存注册表是很自然的。如果不是 https,我只会选择 HTTP_PROXY 和本地 squid 安装。

我确定我不是唯一解决 docker dev 带宽问题的人。你做什么工作?

0 投票
1 回答
2708 浏览

ubuntu - docker登录错误:没有这样的主机

registrydocker 映像启动私有 docker 注册表后,登录到注册表

输入姓名、密码和电子邮件后导致以下错误:

尝试不安全的登录也不起作用:

有什么建议么?谢谢!


nmap 本地主机

浏览器访问http://docker.mydomain.com:5000

http://docker.mydomain.com:5000/v1/_ping在浏览器上访问:

0 投票
6 回答
77544 浏览

docker - Docker公共注册表推送失败:存储库不存在

我正在尝试将我的 docker 映像推送到公共 docker 注册表中:

然而,我已经创建了存储库(可在此处查看)。而且我还尝试推送到我尚未创建的存储库名称(上面示例中的第一次尝试)。

我认为 (len: 0) 与它有关,但我无法谷歌它。此外,我最初从 dockerfile 创建了图像:

谢谢。

0 投票
2 回答
1976 浏览

docker-registry - Default Docker private registry installation Ubuntu

I installed docker registry 2.0 in a Ubuntu 14.04, following the official site: https://docs.docker.com/registry/deploying/

It will be used for testing so the development so I don't think we need a production instance:

  • All clients will be 1.6 so just registry 2.0 required
  • We don't need any kind of authentication

I install it:

Then I prepare a new image for docker:

I've replace localhost as in docs for juandapc, the machine hostname.

Howerver when I try to access the repository from another machine (telnet juandapc 5000) I get this error:

If I pull, same error:

Do I need to configure nginx? Documentation install nginx for production mode with registry 1.6 and 2.0 but it's not my case...

The firewall in the host (juandapc):

Ports from the host juandapc (ESCUCHAR is LISTEN):

5000 is there, but no ipv4????

The registry in the container:

From juandpc I can get into the container: