added docker stop docker-registry
This commit is contained in:
@@ -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
|
garbage collection. So, make sure you run something like below
|
||||||
(or put them in your crontab):
|
(or put them in your crontab):
|
||||||
```
|
```
|
||||||
|
docker stop registry:2
|
||||||
docker-compose -f [path_to_your_docker_compose_file] run \
|
docker-compose -f [path_to_your_docker_compose_file] run \
|
||||||
registry bin/registry garbage-collect \
|
registry bin/registry garbage-collect \
|
||||||
/etc/docker/registry/config.yml
|
/etc/docker/registry/config.yml
|
||||||
|
docker start registry:2
|
||||||
```
|
```
|
||||||
or (if you are not using docker-compose):
|
or (if you are not using docker-compose):
|
||||||
```
|
```
|
||||||
|
docker stop registry:2
|
||||||
docker run registry:2 bin/registry garbage-collect \
|
docker run registry:2 bin/registry garbage-collect \
|
||||||
/etc/docker/registry/config.yml
|
/etc/docker/registry/config.yml
|
||||||
|
docker start registry:2
|
||||||
```
|
```
|
||||||
for more detail on garbage collection read here:
|
for more detail on garbage collection read here:
|
||||||
https://docs.docker.com/registry/garbage-collection/
|
https://docs.docker.com/registry/garbage-collection/
|
||||||
|
|||||||
Reference in New Issue
Block a user