code: func translateWorkingDir(config *containertypes.Config, platform string) error {
  	if config.WorkingDir == "" {
  		return nil
  	}
  	wd := config.WorkingDir
  	switch {
  	case runtime.GOOS != platform:
  		// LCOW. Force Unix semantics
  		wd = strings.Replace(wd, string(os.PathSeparator), "/", -1)
  		if !path.IsAbs(wd) {
  			return fmt.Errorf("the working directory '%s' is invalid, it needs to be an absolute path", config.WorkingDir)
  		}
  	default:
  		wd = filepath.FromSlash(wd) // Ensure in platform semantics
  		if !system.IsAbs(wd) {
  			return fmt.Errorf("the working directory '%s' is invalid, it needs to be an absolute path", config.WorkingDir)
  		}
  	}
  	config.WorkingDir = wd
  	return nil
  }
docs: // translateWorkingDir translates the working-dir for the target platform,
  // and returns an error if the given path is not an absolute path.