def bootstrap_container(name, dist=None, version=None):
    '''
    Bootstrap a container from package servers, if dist is None the os the
    minion is running as will be created, otherwise the needed bootstrapping
    tools will need to be available on the host.

    CLI Example:

    .. code-block:: bash

        salt myminion nspawn.bootstrap_container <name>
    '''
    if not dist:
        dist = __grains__['os'].lower()
        log.debug(
            'nspawn.bootstrap: no dist provided, defaulting to \'{0}\''
            .format(dist)
        )
    try:
        return globals()['_bootstrap_{0}'.format(dist)](name, version=version)
    except __HOLE__:
        raise CommandExecutionError('Unsupported distribution "{0}"'.format(dist))
dataset/ETHPy150Open saltstack/salt/salt/modules/nspawn.py/bootstrap_container