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
645
votes
14 answers

How to push a docker image to a private repository

I have a docker image tagged as me/my-image, and I have a private repo on the dockerhub named me-private. When I push my me/my-image, I end up always hitting the public repo. What is the exact syntax to specifically push my image to my private repo?…
Eugene Goldberg
  • 14,286
  • 20
  • 94
  • 167
359
votes
22 answers

How to get a list of images on docker registry v2

I'm using docker registry v1 and I'm interested in migrating to the newer version, v2. But I need some way to get a list of images present on registry; for example with registry v1 I can execute a GET request to http://myregistry:5000/v1/search? and…
enrique-carbonell
  • 5,836
  • 3
  • 30
  • 44
346
votes
4 answers

How to share my Docker-Image without using the Docker-Hub?

I'm wondering where Docker's images are exactly stored to in my local host machine. Can I share my Docker-Image without using the Docker-Hub or a Dockerfile but the 'real' Docker-Image? And what is exactly happening when I 'push' my Docker-Image to…
yaquawa
  • 6,690
  • 8
  • 35
  • 48
271
votes
1 answer

How to pass arguments to a Dockerfile?

I am using RUN instruction within a Dockerfile to install a rpm RUN yum -y install samplerpm-2.3 However, I want to pass the value "2.3" as an argument. My RUN instruction should look something like: RUN yum -y install samplerpm-$arg where…
meallhour
  • 13,921
  • 21
  • 60
  • 117
265
votes
17 answers

How to delete images from a private docker registry?

I run a private docker registry, and I want to delete all images but the latest from a repository. I don't want to delete the entire repository, just some of the images inside it. The API docs don't mention a way to do this, but surely it's…
Leo
  • 3,036
  • 3
  • 13
  • 12
229
votes
11 answers

How to change the default docker registry from docker.io to my private registry?

By default, if I issue command: sudo docker pull ruby:2.2.1 it will pull from the docker.io offical site by default. Pulling repository docker.io/library/ruby How do I change it to my private registry. That means if I issue sudo docker pull…
mainframer
  • 20,411
  • 12
  • 49
  • 68
220
votes
12 answers

How do I deploy updated Docker images to Amazon ECS tasks?

What is the right approach to make my Amazon ECS tasks update their Docker images, once said images have been updated in the corresponding registry?
aknuds1
  • 65,625
  • 67
  • 195
  • 317
200
votes
11 answers

Where can I find the sha256 code of a docker image?

I'd like to pull the images of CentOS, Tomcat, ... using their sha256 code, like in docker pull myimage@sha256:0ecb2ad60 But I can't find the sha256-code to use anywhere. I checked the DockerHub repository for any hint of the sha256-code, but…
christian
  • 9,412
  • 10
  • 41
  • 51
177
votes
31 answers

Aws ecs fargate ResourceInitializationError: unable to pull secrets or registry auth

I am trying to run a private repository on aws-ecs-fargate-1.4.0 platform. For private repository authentication, I have followed the docs and it was working well. Somehow after updating existing service many times it goes fail to run the task and…
162
votes
12 answers

Add Insecure Registry to Docker

I have a docker 1.12 running on CentOS. I am trying to add insecure registry to it and things mentioned in documentation just don't work. The system uses systemd so I created a /etc/systemd/system/docker.service.d/50-insecure-registry.conf file. $…
EvgeniySharapov
  • 3,078
  • 3
  • 27
  • 38
149
votes
8 answers

How to move Docker containers between different hosts?

I cannot find a way of moving docker running containers from one host to another. Is there any way I can push my containers to repositories like we do for images ? Currently, I am not using data volumes to store the data associated with applications…
Dinesh Reddy
  • 1,594
  • 2
  • 11
  • 9
124
votes
8 answers

How to copy file from host to container using Dockerfile

I have written a Dockerfile which looks like this FROM ubuntu:12.04 RUN apt-get update RUN apt-get install -y wget Now I'm having a file called abc.txt in my host machine. How can I copy it to this container. Is there any step that I can add in…
Sasikiran Vaddi
  • 2,199
  • 4
  • 23
  • 29
113
votes
9 answers

How do I download Docker images without using the pull command?

Is there a way I can download a Docker image/container using, for example, Firefox and not using the built-in docker-pull. I am blocked by the company firewall and proxy, and I can't get a hole through it. My problem is that I cannot use Docker to…
Ephreal
  • 1,835
  • 2
  • 18
  • 35
112
votes
27 answers

Error response from daemon: Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io on 192.168.65.1:53: no such host

I am new to dockers. When I am running the docker pull sonarqube I am getting the following error. Error response from daemon: Get https://registry-1.docker.io/v2/: dial TCP: lookup registry-1.docker.io on 192.168.65.1:53: no such host Can you…
rohit
  • 1,329
  • 2
  • 8
  • 10
94
votes
8 answers

Docker Registry 2.0 - how to delete unused images?

We updated our private docker registry to the official Registry 2.0. This version can now delete docker images identified by a hashtag (see https://docs.docker.com/registry/spec/api/#deleting-an-image) but I still don't see a way to cleanup old…
Kristof Jozsa
  • 6,612
  • 4
  • 28
  • 32
1
2 3
99 100