@utils.retry
    def _docker_save(self, image, output):
        result = 1
        try:
            lp = self.docker.get_image(image)
            with open(output, 'w') as f:
                f.write(lp.data)
            result = 0
        except (__HOLE__, errors.DockerException, errors.APIError) as e:
            LOG.error('Error saving docker image, %s' % str(e))
        return result
dataset/ETHPy150Open openstack/solum/solum/worker/app_handlers/base.py/BaseHandler._docker_save