Remove the mirror does not free up space on harbor issues

在HarborUI界面删除镜像,但磁盘空间并未释放,只是镜像文件的映射关系,还需要通过GC来删除。
  • Stop harbor:
    docker-compose stop
    with -dry-run option, the image file is about to be printed in addition to, but not deleted
docker run -it --name gc --rm --volumes-from registry vmware/registry:2.6.2-photon garbage-collect --dry-run /etc/registry/config.yml
不带–dry-run选项,直接执行删除:
docker run -it --name gc --rm --volumes-from registry vmware/registry:2.6.2-photon garbage-collect /etc/registry/config.yml

Start Harbor:

docker-compose start

Click try
to send you a maximum of $ 1000 Ali cloud spree, Come and pick it ~

Guess you like

Origin blog.csdn.net/qq_42409788/article/details/82186203