code: func MakePublishInfo(networks map[string]string, ports []string) map[string][]string {
  	result := map[string][]string{}
  	for networkName, ip := range networks {
  		data := []string{}
  		for _, port := range ports {
  			data = append(data, fmt.Sprintf("%s:%s", ip, port))
  		}
  		if len(data) > 0 {
  			result[networkName] = data
  		}
  	}
  	return result
  }
docs: // MakePublishInfo generate publish info