镜像push 不上去,一直retrying:

nexus docker 镜像仓库清理

nexus报错提示 :

nexus docker 镜像仓库清理

使用太久,镜像把磁盘沾满了。
nexus docker 镜像仓库清理

镜像清理工具:

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

镜像版本号要求:

版本号是递增方式,并且单位数不能超过10.举个例子:
nexus docker 镜像仓库清理

清理步骤1

查看当前配置:

nexus docker 镜像仓库清理

进行配置:

./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

nexus docker 镜像仓库清理

清理步骤3

添加任务:
nexus docker 镜像仓库清理
nexus docker 镜像仓库清理

nexus docker 镜像仓库清理
nexus docker 镜像仓库清理
nexus docker 镜像仓库清理

查看磁盘清理情况

nexus docker 镜像仓库清理

相关文章:

  • 2021-12-05
  • 2021-04-22
  • 2021-09-17
  • 2021-09-18
  • 2022-02-04
  • 2022-12-23
猜你喜欢
  • 2021-10-11
  • 2022-01-31
  • 2021-05-17
  • 2021-06-15
  • 2021-05-22
  • 2021-08-31
相关资源
相似解决方案