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
12
votes
2 answers

Docker hub image cache doesn't seem to be working

We have a continuous integration pipeline on circleci that does the following: Loads repo/image:mytag1 from the cache directory to be able to use cached layers Builds a new version: docker build -t repoimage:mytag2 Saves the new version to the…
jtmarmon
  • 5,727
  • 7
  • 28
  • 45
12
votes
2 answers

How to forward all ports in docker container

Consider: docker run -p 5000:5000 -v /host/:/host appimage it forwards 5000 to 50000 even in multiple: docker run -p 5000:5000 -p 5001:5001 -v /host/:/host appimage What I want to know is: docker run -p allports:allports is there any command…
nkkrishnak
  • 397
  • 1
  • 3
  • 12
12
votes
4 answers

How to allow multiple '--insecure-registry' for docker registry

As we all known, we can add one --insecure-registry to the /etc/default/docker config file to allow insecure registry, like this: DOCKER_OPTS="$DOCKER_OPTS --insecure-registry myregistry:5000" My question is: Does it support adding more than one…
mainframer
  • 20,411
  • 12
  • 49
  • 68
12
votes
1 answer

docker repository name component must match

I am trying to build my image using this plugin: https://github.com/spotify/docker-maven-plugin#use-a-dockerfile When I run mvn clean package docker:build I get this error: [ERROR] Failed to execute goal com.spotify:docker-maven-plugin:0.2.3:build…
Kingamere
  • 9,496
  • 23
  • 71
  • 110
12
votes
2 answers

Pull Docker from my private docker-registry without specifying the host

I am using docker-registry to pull my own docker images, but I want to do so without the need to specify the host. meanning: instead of writing: docker pull :/ I want to write: docker pull and first it will…
Muky
  • 3,584
  • 3
  • 19
  • 20
11
votes
2 answers

Docker Buildx Cannot Pull From Local for Inherited Image

I have 2 Dockerfiles on my Host Machine ( Ubuntu 20.04 ). I am running docker-ce version Docker version 19.03.12, build 48a66213fe with Experimental Features enabled. I am able to build each of them with "docker buildx" for the ARM architecture and…
PhilBot
  • 748
  • 18
  • 85
  • 173
11
votes
1 answer

Where Docker default registry URL is configured?

I am refering to this link - Docker pull. By default, docker pull pulls images from Docker Hub (https://hub.docker.com). I would like to know where this link is configured on our local machine setup. I am using Docker on Windows 10.
asg
  • 2,248
  • 3
  • 18
  • 26
11
votes
1 answer

Docker-Compose Issue with container name

I have created a docker image with required packages. I have run the docker image specifying the host and guest port along with the required volume mounting Example: sudo docker run -it --name CONTAINERNAME -v /host:/guest…
Jeevitha G
  • 1,194
  • 3
  • 13
  • 20
11
votes
3 answers

Docker registry:2.0 overriding configuration options

Has anyone tried using environment variables to override configuration options in the registry, say if you have to use s3 bucket as the storage for example. I read the doc and it says (https://docs.docker.com/registry/configuration/): Overriding…
alexfvolk
  • 1,810
  • 4
  • 20
  • 40
11
votes
3 answers

Can Docker help build executable that work in different platform

I am new to docker and so my question could be very naive/stupid. The application that we use presently need to be compiled in different platform to make it work in desired platform i.e Linux and Window mainly. So we need to compile source…
pgh
  • 213
  • 3
  • 11
11
votes
8 answers

Docker - check private registry image version

What CLI commands do I need to use in order to check if the image in my private docker registry is a newer version than the one currently running on my server? E.g. I have a container that I ran using docker run -d my.domain.com:5000/project1 and I…
Programster
  • 12,242
  • 9
  • 49
  • 55
10
votes
2 answers

Blob Unknown when pushing to custom registry through apache proxy

I have a custom docker registry running in a container bound to localhost like this 127.0.0.1:5010->5000/tcp. When I push an image to it locally it works. When I try to push an image to it remotely it connects and starts to push the image and then…
Jrow
  • 1,026
  • 2
  • 12
  • 31
10
votes
3 answers

Configuring local registry with self-signed certificate

I want to configure a local docker registry with self-signed certificate which i will be using inside my local network. I'm following instruction from docker manual [1, 2], but nevertheless run into errors. Precisely, my problem is following. I…
mcsim
  • 1,647
  • 2
  • 16
  • 35
10
votes
1 answer

Why digests are different depend on registry?

AFAIK, image digest is a hash of image's manifest body. When I pull busybox image from docker hub, and push it to my private registry, the digests get different. $ docker pull busybox ... Digest:…
SunghoMoon
  • 1,329
  • 1
  • 15
  • 21
10
votes
6 answers

Docker registry error response from daemon i/o timeout

Error response from daemon: Get https://registry.xxx.com:5000/v1/users/: dial tcp: lookup registry.xxx.com on 192.168.65.1:53: read udp 192.168.65.2:42307->192.168.65.1:53: i/o timeout I have set up a private docker registry running on an Ubuntu…
Twoez
  • 540
  • 1
  • 5
  • 17