Tag: dockerregistry

如何从远程私人registry中将新的docker镜像拉到openshift群集节点上?

在https://blog.openshift.com/remotely-push-pull-container-images-openshift/ (和其他来源)中指定的所有步骤在主服务器上完美工作,但它不能帮助我从节点拉。 细节: 在master和两个节点上login到registry:docker login https://my.registry:5000 在master上创build新的秘密: oc secrets new my.registry .dockerconfigjson = / root / .docker / config.json (节点上不能这样做,因为它们没有oc实用程序) 在我目前的项目中为默认帐户添加了秘密: oc secrets add serviceaccount / default secrets / my.registry –for = pull 现在,当我进行新的部署时,在主服务器上创build的Pod将启动得非常好(主服务器将能够提取所需的图像),但是节点上的Pod将无法启动,除非使用Docker拉手动拖动它们。 那么我怎样才能使我的openshift(起源)集群的所有节点与指定的默认帐户拉图像?

docker错误访问私人registry(Win)

我试图从我的私人dockerregistry中拉出docker容器。 当我运行: docker pull 192.168.0.xxx:5000/container 结果是: Using default tag: latest Pulling repository 192.168.0.24:5000/asdf Error while pulling image: Get http://192.168.0.xxx:5000/v1/repositories/asdf/images: dial tcp 192.168.0.xxx:5000: getsockopt: no route to host registry正在运行并与v2,而不是v1。 当我运行时: curl -X GET 192.168.0.xxx:5000/v2/_catalog the connections works and return the correct json {"repositories":["container","container2","container3","container4"]} 我在Docker 17.03-1-ce-win12(stable)中运行, 我如何解决这个问题,或迫使docker拉使用V2? 日志文件: [09:34:01.797][ApiProxy ][Info ] proxy >> GET /_ping [09:34:01.797][ApiProxy ][Info […]

如果我通过registryAPI v2调用之前删除此图像将图像推入私人registry不起作用

我有困难将图像推入私人registry。 让我解释一下我的用例:我有Regisrty容器,它使用deteleconfiguration:eanbled:true docker exec -it registry2 bin/registry –version bin / registry github.com/docker/distribution v2.6.1 1)拉新的图像 ~ # docker pull php:7.0.10-alpine 7.0.10-alpine: Pulling from library/php e110a4a17941: Already exists 5e161e9d6929: Pull complete 1d196bef415b: Pull complete d5b12a7178d8: Pull complete 22b1f5727454: Pull complete 9882476be1ba: Pull complete 45a0a826653b: Pull complete 85edc2f3b545: Pull complete Digest: sha256:f37f59c3bf7004e0315f32f5fca113c4388c42c69a7907fc32fb9ec440469363 Status: Downloaded newer image for php:7.0.10-alpine […]

dockerregistryping 404

我已经创build了一个dockerregistry docker run -e SETTINGS_FLAVOR=s3 -e STORAGE_PATH=/registry -e SEARCH_BACKEND=sqlalchemy -p 5000:5000 registry 并通过ping成为 172.17.0.1 – – [18/Jun/2017:17:56:47 +0000] "GET /v2/_ping HTTP/1.1" 404 19 "" "" 但是我可以推拉图像。

无法将图像推送到Docker Hubregistry

我是全新的Docker,我正在尝试从Docker 入门教程。 我在Ubuntu 17.04下使用Docker 17.05-ce。 问题似乎与networking有关。 当我尝试推我得到以下结果: jonathan@poseidon:~/DockerTest$ sudo docker push jgossage/get-started:part1 The push refers to a repository [docker.io/jgossage/get-started] 1770f1c9a8cf: Pushed 61fd1d8cd138: Pushed e0f735a5e86f: Layer already exists 1de570a07fb5: Pushed b3640b6d4ac2: Layer already exists 08d4c9ccebfd: Pushed 007ab444b234: Retrying in 1 second dial tcp: lookup registry-1.docker.io on 127.0.0.53:53: dial udp 127.0.0.53:53: i/o timeout jonathan@poseidon:~/DockerTest$ sudo docker logs […]

kubernetes不能从localhostregistry运行docker镜像

我正在尝试使用kubernetes运行一个单一的docker容器 cat /path/to/docker/docker.conf [Service] ExecStart= ExecStart=/usr/bin/dockerd -H fd:// –live-restore=true –iptables=false –log-opt max-size=100m –log-opt max-file=3 –bip ${FLANNEL_SUBNET} –mtu ${FLANNEL_MTU} DOCKER_OPTS="–insecure-registry localhost:5000" 我想创build一个本地registry,因为我不想让我的图像驻留在公共回购。 docker run -d -p 5050:5000 –restart=always –name registry registry:2 那么我只是build立我的形象 docker build -f "Dockerfile" -t localhost:5050/myImage . docker push localhost:5050/myImage 这两个工作,只是可以肯定,我也可以运行图像 docker run -d -p 5000:5000 –name myImage –hostname myImage -v /some/path/to/mount:/some/path/to/mount localhost:5050/myImage 现在我试着去做 […]

将Dockerregistry中的图像克隆到另一个

我有一组图像的私人registry。 它可以被视为一个应用程序的存储。 我的应用程序可以把这些应用程序,并在其他机器上运行。 为了实现这一点,我的应用程序首先从私人registry中拉出图像,然后将其复制到本地registry以供以后使用。 步骤如下: docker pull privateregistry:5000/company/app:tag docker tag privateregistry:5000/company/app:tag localregistry:5000/company/app:tag docker push localregistry:5000/company/app:tag 然后稍后在我的networking中的另一台机器上: docker pull localregistry:5000/company/app:tag 有没有办法有效地复制图像从存储库到另一个没有使用泊坞窗客户之间?

jenkinspipe道与dockerregistry凭证错误

我正在尝试从我的pipe道groovy scritlogindtr时出现错误。 这是说这是一个凭证错误。 docker.withRegistry('https://dtrlb-oe3ko7eumonjw.eastus.cloudapp.azure.com/','ddcadmin') 我的错误是: 在这里input图像说明

Dockerregistry – 从文件系统中删除清单

我的CI使用一个标签将图像推送到dockerregistry。 我有一个脚本,定期清理旧的unuser图像。 它只是迭代标签内的摘要,并在registryAPI上调用DELETE(遍历registry文件系统上的文件)。 dir="${REGISTRY_STORAGE_FILESYSTEM_ROOTDIRECTORY}/docker/registry/v2/repositories/test/_manifests/tags/5.3/index/sha256/" oldManifests=$(ls -t $dir | tail -n +2 ; done) for hash in $oldManifests do curl -L -X DELETE http://localhost:5000/v2/test/manifests/sha256:$hash done /bin/registry garbage-collect /etc/docker/registry/config.yml 垃圾收集后,所有的斑点被删除,但不是_manifests / tags / 5.3 / index / sha256 /下的目录。 为什么? 手动删除它是否安全?

DC / OS Dockerregistry没有响应

我已经使用此代码安装了Vagrant的DC / OS: https://github.com/dcos/dcos-vagrant 之后,我用Docker Registry安装了这个包。 安装工作,并在网页面板看起来很健康,但我不能从代理访问registry。 代理具有服务器使用的证书。 我试过“docker推”,它只是试图发送图像时不断重试。 另外,我在registry日志中看到一个错误,试图连接主服务器,并得到一个意外的EOF。 我已经按照文档中的所有步骤来安装Docker Registry in DC / OS,并没有发现任何额外的信息来解决这个问题。 你能帮我在DC / OS上运行一个工作的Docker Registry