简体   繁体   中英

JFrog artifactory docker image size trough REST

将图像推送到JFrog人工项目docker注册表后,我想通过REST API获取图像大小,是否为此使用任何API?

You can use the Artifactory REST API to query many options in your Artifactory.
See JFrog Artifactory REST API docs for all options.

Since a Docker image is saved as layers, you need to query the file list in the folder where the layers are and then sum all "size" parameters for each file.

List files (see "size"): File list API

I hope this helps.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM