code: func (daemon *Daemon) ContainerStatPath(name string, path string) (stat *types.ContainerPathStat, err error) {
  	container, err := daemon.GetContainer(name)
  	if err != nil {
  		return nil, err
  	}
  
  	// Make sure an online file-system operation is permitted.
  	if err := daemon.isOnlineFSOperationPermitted(container); err != nil {
  		return nil, errdefs.System(err)
  	}
  
  	stat, err = daemon.containerStatPath(container, path)
  	if err == nil {
  		return stat, nil
  	}
  
  	if os.IsNotExist(err) {
  		return nil, containerFileNotFound{path, name}
  	}
  	return nil, errdefs.System(err)
  }
docs: // ContainerStatPath stats the filesystem resource at the specified path in the
  // container identified by the given name.