From bf305c1b910b88e36d38b4d37023cb63eeefe736 Mon Sep 17 00:00:00 2001 From: Jeff Nickoloff Date: Wed, 10 Jun 2015 10:25:41 -0700 Subject: [PATCH 1/2] Adding a volume for the default 'registry-dev' location. Signed-off-by: Jeff Nickoloff --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index c1bf8bd5f..07255b9e7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,6 +12,7 @@ WORKDIR $DISTRIBUTION_DIR COPY . $DISTRIBUTION_DIR RUN make PREFIX=/go clean binaries +VOLUME ["/tmp/registry-dev"] EXPOSE 5000 ENTRYPOINT ["registry"] CMD ["cmd/registry/config.yml"] From 5bd4b5c558e073eea37d691dbb0bf732258c2d49 Mon Sep 17 00:00:00 2001 From: Jeff Nickoloff Date: Wed, 10 Jun 2015 21:24:16 -0700 Subject: [PATCH 2/2] Updating the location of the volume to match the new location of the default registry data location. Signed-off-by: Jeff Nickoloff --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 07255b9e7..d0db8542e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,7 +12,7 @@ WORKDIR $DISTRIBUTION_DIR COPY . $DISTRIBUTION_DIR RUN make PREFIX=/go clean binaries -VOLUME ["/tmp/registry-dev"] +VOLUME ["/var/lib/registry"] EXPOSE 5000 ENTRYPOINT ["registry"] CMD ["cmd/registry/config.yml"]