code: func (es *EndpointSettings) Copy() *EndpointSettings {
  	epCopy := *es
  	if es.IPAMConfig != nil {
  		epCopy.IPAMConfig = es.IPAMConfig.Copy()
  	}
  
  	if es.Links != nil {
  		links := make([]string, 0, len(es.Links))
  		epCopy.Links = append(links, es.Links...)
  	}
  
  	if es.Aliases != nil {
  		aliases := make([]string, 0, len(es.Aliases))
  		epCopy.Aliases = append(aliases, es.Aliases...)
  	}
  	return &epCopy
  }
docs: // Copy makes a deep copy of `EndpointSettings`