code: func (daemon *Daemon) ConnectContainerToNetwork(containerName, networkName string, endpointConfig *network.EndpointSettings) error {
  	container, err := daemon.GetContainer(containerName)
  	if err != nil {
  		return err
  	}
  	return daemon.ConnectToNetwork(container, networkName, endpointConfig)
  }
docs: // ConnectContainerToNetwork connects the given container to the given
  // network. If either cannot be found, an err is returned. If the
  // network cannot be set up, an err is returned.