async def create(hub, ctx, name: str, image: str, wait=False):
    """
    Create a new container.

    CLI Example:

    .. code-block:: bash

        idem exec lxd.containers.create container01 centos7
        idem exec lxd.containers.create container01 centos7 wait=True
    """
    if await hub.tool.lxd.api.request(ctx, "containers", "exists", name=name):
        return {"status": 'Instance: "{}" already exists'.format(name)}
    config = {}
    config["name"] = name
    config["source"] = {}
    config["source"]["type"] = "image"
    config["source"]["alias"] = image

    container = await hub.tool.lxd.api.request(
        ctx, "containers", "create", config=config
    )
    if "error" in container:
        return container
    return {"status": "Creating container: {}".format(name)}