img icon indicating copy to clipboard operation
img copied to clipboard

img: 'manifest' is not an img command

Open InsOpDe opened this issue 4 years ago • 1 comments

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 $?`

InsOpDe avatar Apr 18 '21 10:04 InsOpDe

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

keypointt avatar Feb 11 '22 01:02 keypointt