Questions tagged [docker-registry]

Docker Registry is a service which you can push Docker images to for storage and sharing. It is also the tool's name.

Docker registry services are provided as hosted or self-hosted services by various vendors:

Self-hosted:

Hosted

All of them comply either to v1 or v2 of the Docker registry API specification.

Docker Registry tool is at https://github.com/docker/docker-registry.

1698 questions
51
votes
3 answers

Why am I getting an ErrImagePull error in this Kubernetes deployment?

I'm trying to create a local Kubernetes deployment using Minikube, Docker Registry, and a demo node project. The first thing I did was install Docker v1.12.3, then Minikube v0.12.2. Then I created a Docker Registry container by running this command…
Nathan Jones
  • 4,904
  • 9
  • 44
  • 70
49
votes
4 answers

Docker image push over SSH (distributed)

TL;DR Basically, I am looking for this: docker push myimage ssh://myvps01.vpsprovider.net/ I am failing to grasp the rationale behind whole Docker Hub / Registry thing. I know I can run a private registry, but for that I have to set up the…
Krumelur
  • 31,081
  • 7
  • 77
  • 119
38
votes
14 answers

docker push error "denied: requested access to the resource is denied"

This error occurs when trying to push an image to the public repository on Docker Hub. There have been no issues with other registries I have tried. I have looked at numerous sites, blogs including StackOverflow and there is still no clear…
SamDevx
  • 2,268
  • 4
  • 32
  • 47
38
votes
3 answers

Pull docker images from a private repository during docker build?

Is there any way of pulling images from a private registry during a docker build instead of docker hub? I deployed a private registry and I would like to be able to avoid naming its specific ip:port in the Dockerfile's FROM instruction. I was…
Julio Guerra
  • 5,523
  • 9
  • 51
  • 75
37
votes
1 answer

Use private docker registry with Authentication in Jenkinsfile

How can I teach my Jenkisfile to login via basic auth in this setup? I'm using a custom docker image for my Jenkins build. As described in the documentation here I defined a docker agent like so: pipeline { agent { docker { image…
Robin Finkbeiner
  • 417
  • 1
  • 6
  • 11
35
votes
5 answers

Create kubernetes docker-registry secret from yaml file?

I can run this command to create a docker registry secret for a kubernetes cluster: kubectl create secret docker-registry regsecret \ --docker-server=docker.example.com \ --docker-username=kube \ --docker-password=PW_STRING…
Rotareti
  • 49,483
  • 23
  • 112
  • 108
34
votes
3 answers

Docker show current registry

In docker, how can one display the current registry info you are currently logged in? I installed docker, if I now do docker push, where does it send my images? I spend over 30min searching this info from Google and docker docs, and couldn't find…
Ville Miekk-oja
  • 18,749
  • 32
  • 70
  • 106
34
votes
3 answers

Docker push error "413 Request Entity Too Large"

I setup the registry v2 and use nginx as reverse proxy. When I push the image to registy, it error out 413 Request Entity Too Large. I have modify the client_max_body_size as 20MB in nginx.conf. The push still fails. client_max_body_size 20M; What…
firelyu
  • 2,102
  • 5
  • 25
  • 29
32
votes
6 answers

docker local registry "exec: \"htpasswd\": executable file not found in $PATH"

Until recently this worked fine docker run --entrypoint htpasswd registry:2 -Bbn myuser mypwd > /my/registry2/reg/hub/auth/htpasswd now its erroring out with docker: Error response from daemon: OCI runtime create failed: container_linux.go:349:…
Scott Stensland
  • 26,870
  • 12
  • 93
  • 104
32
votes
3 answers

Create a docker image/container from EC2 AMI

I am very new to docker and am trying to import my AWS EC2 AMI into a docker image. The image is a m2 linux image. I have also setup a private docker hub(artifactory) to which I intend to push the image and make it available for consumption. What…
user1795516
  • 451
  • 1
  • 8
  • 18
29
votes
3 answers

How are Docker image names parsed?

When doing a docker push or when pulling an image, how does Docker determine if there is a registry server in the image name or if it is a path/username on the default registry (e.g. Docker Hub)? I'm seeing the following from the 1.1 image…
BMitch
  • 231,797
  • 42
  • 475
  • 450
29
votes
6 answers

Any API or Web UI project to manage a Docker private registry?

I can't find how to manage images in a private registry. I can push or pull an image because i know the id but how to get the list of pushed images ? Take for example a person who wants to see the available images under the private registry of his…
bwilcox
  • 629
  • 1
  • 6
  • 14
26
votes
5 answers

how to tag image in docker registry v2

We have logic in our CI-CD that tags (via REST) staging image to latest (if tests are successful). This worked on registry v1. We now moved to v2 api, and I can't find documentation on how to "add" tags to existing image in registry. I'm in a step…
user1025852
  • 2,684
  • 11
  • 36
  • 58
26
votes
1 answer

Default private registry in Docker

I need to set up my own private registry in Docker, to generally keep all internal Docker-images. To make this easier, I want to have a setup internally where my Docker-images are called project/component, just like normal Docker-images you pull…
xeor
  • 5,301
  • 5
  • 36
  • 59
25
votes
1 answer

How to use wait-for-it in docker-compose file?

Do I have to first have to clone the wait-for-it repo and edit the parts of the wait-for-it.sh file? https://github.com/vishnubob/wait-for-it/blob/master/wait-for-it.sh I'm trying to make my main file fire after 5 seconds after my customer service…
TheRoadLessTaken
  • 531
  • 2
  • 7
  • 15