code: 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 \'%s\'', dist)
      try:
          return globals()['_bootstrap_{0}'.format(dist)](name, version=version)
      except KeyError:
          raise CommandExecutionError('Unsupported distribution "{0}"'.format(dist)f 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 \'%s\'', dist)
      try:
          return globals()['_bootstrap_{0}'.format(dist)](name, version=version)
      except KeyError:
          raise CommandExecutionError('Unsupported distribution "{0}"'.format(dist))
docs: 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>