genuinetools / img

Standalone, daemon-less, unprivileged Dockerfile and OCI compatible container image builder.
https://blog.jessfraz.com/post/building-container-images-securely-on-kubernetes/
MIT License
3.88k stars 229 forks source link

img: 'manifest' is not an img command #337

Open InsOpDe opened 3 years ago

InsOpDe commented 3 years ago

is the manifest command supported?

use-case: Im checking whether the image with a certain tag is available on remote - if not Im rebuilding it:

echo "{\"experimental\":\"enabled\"}" >> ~/.docker/config.json
NOT_AVAILABLE=`img manifest inspect ${IMAGE_DEPENDENCY}:${PACKAGE_MD5} > /dev/null ; echo $?`
if [[ ${NOT_AVAILABLE} == "1" ]];
...

Workaround would be to just use

NOT_AVAILABLE=`img pull ${IMAGE_DEPENDENCY}:${PACKAGE_MD5} > /dev/null ; echo $?`
keypointt commented 2 years ago

Hi Jess @jessfraz I have similar question here, and walkaround img pull will not work for me since I have a 30G image...

Is there a better way to quickly check if that image exists?

Thank you

(I did my work and scan through the img usage and seems "no" to my question, but just double check I didn't miss anything...)