Tag: docker registry

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 ruby:2.2.1 it will pull from my own private registry, the output is something like: Pulling […]

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 from https://index.docker.io/. I am certain, that I will never grab images in this format from […]

Deleting 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 possible?

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 Docker-Hub?

How to push a docker image to a private repository

I have a docker images 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?

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 $arg=2.3

Docker registry 2.0 API v2

I pulled and setup the local docker registry:2.0 I have tried pushing an image successfully, but when ever I try searching for an image I get 404: root@ip-10-232-0-153:~# curl -v -X GET http://localhost:5000/v2/search * Hostname was NOT found in DNS cache * Trying 127.0.0.1… * Connected to localhost (127.0.0.1) port 5000 (#0) > GET /v2/search […]

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 the result is: { “num_results”: 2, “query”: “”, “results”: [ { “description”: […]

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 repos like we do it for images ? Currently I am not using data volumes to store the data associated with applications running inside containers. So some data resides inside […]

How to get remote access to a private docker-registry?

I’m trying to setup a private docker registry using the image taken from: https://github.com/docker/docker-registry Just by running: docker run -p 5000:5000 registry I can pull/push from/to this repository only from localhost, but if i try to access it from another machine (using a private address on the same LAN) it fails with an error message: […]

Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.