The Docker Registry is a stateless, highly scalable server side application that stores and lets you distribute Docker images. The Registry is open-source, under the permissive Apache license.
Docker registry is just a Docker image. So you need to have docker to set up the registry.
You should use the Registry if you want to:
- tightly control where your images are being stored
- fully own your images distribution pipeline
- integrate image storage and distribution tightly into your in-house development workflow
Alternatives
Docker Hub provides a zero maintenance, ready-to-go solution. It is a free-to-use, hosted Registry, plus additional features (organization accounts, automated builds, and more).
Install docker
The Registry is compatible with Docker engine version 1.6.0 or higher.
Use one of the guides to set up docker on your machine.
Up and running with docker registry
Start your registry. This will run registry version 6d1579cfd3393c40ea39332beee7f203MARKDOWN, get the latest version here.
| |
Pull (or build) some image from the hub
| |
Output:
| |
Tag the image so that it points to your registry
| |
Push it
| |
Pull it back
| |
Cleaning up the registry when not needed
| |
Using docker compose for more solid
Create data dir
| |
Create the yaml file
| |
Run an externally-accessible registry
Running a registry only accessible on localhost has limited usefulness. In order to make your registry accessible to external hosts, you must first secure it using TLS.
Nginx conf file /etc/nginx/conf.d/registry.conf
| |