Tag: docker registry

Docker registry and index

Good day! I have looked a ton of info about docker registry and still have some questions about it… Please, help me to understand some things about index and registry. I have installed docker-registry for private repositories. And I worked with standalone mode true. As I understand, docker registry can’t authenticate users – it asks […]

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 Dockerfile which copy from Host to Container.

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 images. As our CI server is continously producing new images, I would need a method to delete all images from the […]

How to search images from private 1.0 registry in docker?

I made a private registry,curl xx.xx.xx.xx:5000 is ok. I push an image into docker private registry by doing: docker push xx.xx.xx.xx:5000/centos it return: http://xx.xx.xx.xx:5000/v1/repositories/centos/tags/latest the question is how to get all images from registry web or command whatever. I cant find any information from docker registry api. any one helps ? 🙂

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 will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.