Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Docker Registry v2 (aka Distribution) #47

Merged
merged 1 commit into from
Mar 28, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
11 changes: 11 additions & 0 deletions registry-v2/centos7/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM centos:7
MAINTAINER The CentOS Project <cloud-ops@centos.org>

RUN yum -y install docker-distribution; yum clean all

EXPOSE 5000

USER 42

ENTRYPOINT ["/usr/bin/registry"]
CMD ["/etc/docker-distribution/registry/config.yml"]
19 changes: 19 additions & 0 deletions registry-v2/centos7/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Docker Registry v2 (aka Distribution)
========================

CentOS7 Dockerfile for Docker Registry v2

To build:
```bash
docker build -t <yourname>/registry .
```

To run:
```bash
docker run -d -p 5000:5000 <yourname>/registry
```

To use a persistent storage run it as:
```bash
docker run -d -p 5000:5000 -v /var/lib/registry:/var/lib/registry:Z <yourname>/registry
```