code: func (s *AttachedScheduler) Stop(ctx context.Context, maybeContainerID string) error {
  	if !s.ShowAttached {
  		return s.Scheduler.Stop(ctx, maybeContainerID)
  	}
  
  	err := s.dockerScheduler.Stop(ctx, maybeContainerID)
  
  	// If there's no container with this ID, delegate to the wrapped
  	// scheduler.
  	if _, ok := err.(*docker.NoSuchContainer); ok {
  		return s.Scheduler.Stop(ctx, maybeContainerID)
  	}
  
  	return err
  }
docs: // Stop checks if there's an attached run matching the given id, and stops that
  // container if there is. Otherwise, it delegates to the wrapped Scheduler.