code: def prepare(self):
          '''Prepare to run the docker command'''
          self.__make_scubadir()
  
          if self.is_remote_docker:
              '''
              Docker is running remotely (e.g. boot2docker on OSX).
              We don't need to do any user setup whatsoever.
  
              TODO: For now, remote instances won't have any .scubainit
  
              See:
              https://github.com/JonathonReinhart/scuba/issues/17
              '''
              raise ScubaError('Remote docker not supported (DOCKER_HOST is set)')
  
          # Docker is running natively
          self.__setup_native_run()
  
          # Apply environment vars from .scuba.yml
          self.env_vars.update(self.context.environmentf prepare(self):
          '''Prepare to run the docker command'''
          self.__make_scubadir()
  
          if self.is_remote_docker:
              '''
              Docker is running remotely (e.g. boot2docker on OSX).
              We don't need to do any user setup whatsoever.
  
              TODO: For now, remote instances won't have any .scubainit
  
              See:
              https://github.com/JonathonReinhart/scuba/issues/17
              '''
              raise ScubaError('Remote docker not supported (DOCKER_HOST is set)')
  
          # Docker is running natively
          self.__setup_native_run()
  
          # Apply environment vars from .scuba.yml
          self.env_vars.update(self.context.environment)
docs: Prepare to run the docker command