code: func (u *DockerRegistryURL) HostPort() string {
  	if u.Port == "" {
  		return u.Host
  	}
  	return net.JoinHostPort(u.Host, u.Port)
  
  }
docs: // HostPort returns the HostPort of the registry URL. If there is no port, then
  // it returns just the host.