'Use Skopeo to determine if required image exists in known registry(s).'

def is_available_skopeo_image(self, image, default_registries):

    registries = default_registries
    if (image.count('/') > 1):
        (registry, image) = image.split('/', 1)
        registries = [registry]
    for registry in registries:
        args = {'_raw_params': 'skopeo    inspect    --tls-verify=false    docker://{}/{}'.format(registry, image)}
        result = self.execute_module('command', args)
        if ((result.get('rc', 0) == 0) and (not result.get('failed'))):
            return True
    return False
