@arg('server', metavar='<server>', help='Name or ID of server.')
    @arg('name', metavar='<name>', help='Name for the new image.')
    def do_image_create(self, args):
        server = self._find_server(args.server)
        image = self.compute.images.create(args.name, server)
        print_dict(image._info)
Create a new image by taking a snapshot of a running server.
dataset/ETHPy150Open jacobian-archive/openstack.compute/openstack/compute/shell.py/ComputeShell.do_image_create