nexus docker 镜像仓库清理


镜像push 不上去,一直retrying:

nexus报错提示 :

使用太久,镜像把磁盘沾满了。

镜像清理工具:

https://s3.eu-west-2.amazonaws.com/nexus-cli/1.0.0-beta/linux/nexus-cli
下载,添加x权限

镜像版本号要求:

版本号是递增方式,并且单位数不能超过10.举个例子:

清理步骤1

查看当前配置:

进行配置:

./nexus-cli configure 
Enter Nexus Host: http://http://nexus.vonedao.com/
Enter Nexus Repository Name: docker-images
Enter Nexus Username: admin
Enter Nexus Password: xxxxxx

清理步骤2

./nexus-cli image ls
清理具体的镜像,保留版本号最大的5个:
./nexus-cli image delete -n vonedao-cs/vonedao-web -k 5

清理步骤3

添加任务:



查看磁盘清理情况


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM