From 3cfc9b145c2a6a9fe6e54a6b586420b784f67901 Mon Sep 17 00:00:00 2001 From: Andrey Pohilko Date: Sun, 16 Oct 2016 11:35:36 +0600 Subject: [PATCH] added docker stop docker-registry --- README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1aca621..fa58477 100644 --- a/README.md +++ b/README.md @@ -68,14 +68,18 @@ Delete all tags for all images (do you really want to do it?): garbage collection. So, make sure you run something like below (or put them in your crontab): ``` - docker-compose -f [path_to_your_docker_compose_file] run \ + docker stop registry:2 + docker-compose -f [path_to_your_docker_compose_file] run \ registry bin/registry garbage-collect \ /etc/docker/registry/config.yml + docker start registry:2 ``` or (if you are not using docker-compose): ``` - docker run registry:2 bin/registry garbage-collect \ + docker stop registry:2 + docker run registry:2 bin/registry garbage-collect \ /etc/docker/registry/config.yml + docker start registry:2 ``` for more detail on garbage collection read here: https://docs.docker.com/registry/garbage-collection/