code: func (container *Container) ResolvePath(path string) (resolvedPath, absPath string, err error) {
  	if container.BaseFS == nil {
  		return "", "", errors.New("ResolvePath: BaseFS of container " + container.ID + " is unexpectedly nil")
  	}
  	// Check if a drive letter supplied, it must be the system drive. No-op except on Windows
  	path, err = system.CheckSystemDriveAndRemoveDriveLetter(path, container.BaseFS)
  	if err != nil {
  		return "", "", err
  	}
  
  	// Consider the given path as an absolute path in the container.
  	absPath = archive.PreserveTrailingDotOrSeparator(
  		container.BaseFS.Join(string(container.BaseFS.Separator()), path),
  		path,
  		container.BaseFS.Separator())
  
  	// Split the absPath into its Directory and Base components. We will
  	// resolve the dir in the scope of the container then append the base.
  	dirPath, basePath := container.BaseFS.Split(absPath)
  
  	resolvedDirPath, err := container.GetResourcePath(dirPath)
  	if err != nil {
  		return "", "", err
  	}
  
  	// resolvedDirPath will have been cleaned (no trailing path separators) so
  	// we can manually join it with the base path element.
  	resolvedPath = resolvedDirPath + string(container.BaseFS.Separator()) + basePath
  	return resolvedPath, absPath, nil
  }
docs: // ResolvePath resolves the given path in the container to a resource on the
  // host. Returns a resolved path (absolute path to the resource on the host),
  // the absolute path to the resource relative to the container's rootfs, and
  // an error if the path points to outside the container's rootfs.