code: func (s *Container) HasExposedPorts() bool {
  	nodes, err := s.NetworkNodes()
  	if err != nil {
  		return false
  	}
  
  	for _, v := range nodes {
  		if v.Port > 0 || len(v.Protocol) > 0 {
  			return true
  		}
  	}
  
  	return false
  }
docs: // HasExposedPorts returns whether current container has exposed ports.