code: func (pm *PortMapper) ReMapAll() {
  	pm.lock.Lock()
  	defer pm.lock.Unlock()
  	logrus.Debugln("Re-applying all port mappings.")
  	for _, data := range pm.currentMappings {
  		containerIP, containerPort := getIPAndPort(data.container)
  		hostIP, hostPort := getIPAndPort(data.host)
  		if err := pm.AppendForwardingTableEntry(data.proto, hostIP, hostPort, containerIP.String(), containerPort); err != nil {
  			logrus.Errorf("Error on iptables add: %s", err)
  		}
  	}
  }
docs: //ReMapAll will re-apply all port mappings