docker-registry

Docker 构建私有仓库

北战南征 提交于 2019-12-09 13:14:29
Docker Hub 目前Docker官方维护了一个公共仓库Docker Hub,其中已经包含了数量超过15000的镜像。大部分需求都可以通过在Docker Hub中直接下载镜像来实现。 可以在 https://hub.docker.com 免费注册一个Docker账号。 在命令行输入执行docker login,输入用户名及密码可以登录Docker Hub,可以通过docker logout退出登录。 通过docker search命令可以查找官方仓库中的镜像,并利用docker pull命令将镜像下载到本地。 用户登录后也可以通过docker push 命令将自己的镜像推送到Docker Hub。 私有仓库 有时候使用Docker Hub这样的公有仓库可能不方便,用户可以创建自己的私有仓库。 docker-registry是官方提供的工具,可以用于构建私有的镜像仓库。 安装运行docker-registry 可以通过官方registry镜像来运行。默认情况下,仓库会被创建在 /var/lib/registry 目录下。 可以通过 -v 参数来将镜像文件放在本地的指定路径 docker run --name registry -d \ -p 5000:5000 --restart=always \ -v /opt/data/registry:/var/lib/registry \

ImagePullBackOff error Google Kubernetes Engine

北城余情 提交于 2019-12-09 11:56:33
问题 I know a lot of people already had similar question, i read a few of them, but found nothing what actualy helped me so far. I have a gitlab with private repo enabled, I also use Google Kubernetes Engine. I have a few Docker container in my private repo, and I want to deploy one of them to the Kubernetes Engine. I have created a secret with kubectl create secret generic db-user-pass --from-file=./username.txt --from-file=./password.txt I also tried kubectl create secret docker-registry name -

Docker 构建私有仓库

馋奶兔 提交于 2019-12-08 21:11:28
Docker Hub 目前Docker官方维护了一个公共仓库Docker Hub,其中已经包含了数量超过15000的镜像。大部分需求都可以通过在Docker Hub中直接下载镜像来实现。 可以在 https://hub.docker.com 免费注册一个Docker账号。 在命令行输入执行docker login,输入用户名及密码可以登录Docker Hub,可以通过docker logout退出登录。 通过docker search命令可以查找官方仓库中的镜像,并利用docker pull命令将镜像下载到本地。 用户登录后也可以通过docker push 命令将自己的镜像推送到Docker Hub。 私有仓库 有时候使用Docker Hub这样的公有仓库可能不方便,用户可以创建自己的私有仓库。 docker-registry是官方提供的工具,可以用于构建私有的镜像仓库。 安装运行docker-registry 可以通过官方registry镜像来运行。默认情况下,仓库会被创建在 /var/lib/registry 目录下。 可以通过 -v 参数来将镜像文件放在本地的指定路径 docker run --name registry -d \ -p 5000:5000 --restart=always \ -v /opt/data/registry:/var/lib/registry \

How to pull docker image from docker hub private registry into Azure Container Service (ACS)?

余生颓废 提交于 2019-12-08 13:41:45
问题 I have setup a private registry in Docker hub (hub.docker.com): rbiswas/http-service. Now I am trying to pull/run this image into Azure Container Service (ACS) cluster vm by following the steps mentioned below: First I ssh into the ACS cluster using command: ssh -i /home/rbiswas/.ssh/acs_rsa -L 2375:localhost:2375 -N rbiswas@swarmclustermgmt.eastasia.cloudapp.azure.com -p 2200 Then I use the following commands in another terminal: docker -H tcp://localhost:2375 login hub.docker.com docker -H

setting up gitlab as docker container with docker registry showing error 500

夙愿已清 提交于 2019-12-08 09:50:42
问题 I'm trying to running a Gitlab docker container in a Vagrant box. But I have some problems getting the docker registry running. my docker-compose.yml gitlab: container_name: gitlab image: gitlab/gitlab-ce:latest volumes: - /srv/gitlab/config:/etc/gitlab - /srv/gitlab/logs:/var/log/gitlab - /srv/gitlab/data:/var/opt/gitlab - /srv/gitlab/logs/reconfigure:/var/log/gitlab/reconfigure restart: always hostname: 192.168.7.7 ports: - 0.0.0.0:23:22 - 0.0.0.0:80:80 - 0.0.0.0:443:443 - 0.0.0.0:5000:5000

Private Docker registry frontend with SSL encryption

孤街浪徒 提交于 2019-12-08 05:27:06
问题 I am using https://github.com/kwk/docker-registry-frontend for my private docker registry frontend. How to use this frontend with SSL encryption enabled if I have my files at /certs/domain.crt and /certs/domain.key ? There is one section https://github.com/kwk/docker-registry-frontend#ssl-encryption which talks about it but I'm not sure about following steps -v $PWD/server.crt:/etc/apache2/server.crt:ro \ -v $PWD/server.key:/etc/apache2/server.key:ro \ I'm not using apache. I simply have my

How to create docker registry mirror

会有一股神秘感。 提交于 2019-12-08 04:26:28
问题 I use MAC OS X.And I want to use mirror in this tutorial, its step 1 is need to do this: docker --registry-mirror=http://<my-docker-mirror-host> -d But, when I use this command in terminal, it did't work: flag provided but not defined: --registry-mirror See 'docker --help'. then, I use the other way in tutorial: you may be able to add the --registry-mirror options to the DOCKER_OPTS variable in /etc/default/docker I don't know where to add this DOCKER_OPTS. I want to use mirror in client 1.7

What token endpoint does JFrog Artifactory use for its Docker registries?

纵然是瞬间 提交于 2019-12-07 17:21:56
问题 I'm trying to write code that can essentially do a docker inspect on images published to a private JFrog Artifactory, without having to actually pull the images themselves. I've been using a guide called Inspecting Docker images without pull for a breakdown of the API calls. The guide uses the public Docker Hub registry as its base - not Artifactory - which is a little different. Basically, there are 3 API calls that need to be made: First get a token Then get a "digest" for a given image/tag

docker is using the v1 registry api when it should use v2

ぐ巨炮叔叔 提交于 2019-12-07 05:36:00
问题 I'm trying to use a self hosted docker registry v2. I should be able to push a docker image, which does work locally on the host server (coreos) running the registry v2 container. However, on a separate machine (also coreos, same version) when I try to push to the registry, it's try to push to v1, giving this error: Error response from daemon: v1 ping attempt failed with error: Get https://172.22.22.11:5000/v1/_ping: dial tcp 172.22.22.11:5000: i/o timeout. If this private registry supports

setting gitlab with docker registry error 500

泪湿孤枕 提交于 2019-12-06 22:38:33
I have running docker with docker registry on example.domain.com docker run -d -p 5000:5000 --restart=always --name registry \ -v /etc/ssl/certs/:/certs \ -e REGISTRY_STORAGE_FILESYSTEM_ROOTDIRECTORY=/var/lib/registry \ -v /git/docker_registry:/var/lib/registry \ -e REGISTRY_HTTP_TLS_CERTIFICATE=/certs/server.crt \ -e REGISTRY_HTTP_TLS_KEY=/certs/server.key \ registry:2 I can push and pull to this docker registry but when i try to connect it with gitlab which is running on the same machine example.domain.com using gitlab.yml config: registry: enabled: true host: example.domain.com port: 5005