'Install a container image from a remote path.
:param path: Path to the container image
:type  path: ``str``
:rtype: :class:`libcloud.container.base.ContainerImage`'

def install_image(self, path):

    payload = {}
    data = json.dumps(payload)
    result = self.connection.request(('/v%s/images/create?fromImage=%s' % (self.version, path)), data=data, method='POST')
    if ('errorDetail' in result.body):
        raise DockerException(None, result.body)
    image_id = None
    if (re.search('Downloaded    newer    image', result.body) or re.search('"Status:    Image    is    up    to    date', result.body)):
        if re.search('sha256:(?P<id>[a-z0-9]{64})', result.body):
            image_id = re.findall('sha256:(?P<id>[a-z0-9]{64})', result.body)[(-1)]
    if (image_id is None):
        raise DockerException(None, 'failed    to    install    image')
    image = ContainerImage(id=image_id, name=path, path=path, version=None, driver=self.connection.driver, extra={})
    return image
