mirror of https://github.com/docker/docs.git
				
				
				
			set swarm manage to advertise on 3376
Signed-off-by: Dustin Blackman <dev@dustinblackman.com>
This commit is contained in:
		
							parent
							
								
									e681a4bb50
								
							
						
					
					
						commit
						288fddb736
					
				|  | @ -41,13 +41,14 @@ func configureSwarm(p Provisioner, swarmOptions swarm.Options, authOptions auth. | ||||||
| 	advertiseInfo := fmt.Sprintf("%s:%s", ip, dockerPort) | 	advertiseInfo := fmt.Sprintf("%s:%s", ip, dockerPort) | ||||||
| 
 | 
 | ||||||
| 	if swarmOptions.Master { | 	if swarmOptions.Master { | ||||||
|  | 		advertiseMasterInfo := fmt.Sprintf("%s:%s", ip, "3376") | ||||||
| 		cmd := fmt.Sprintf("manage --tlsverify --tlscacert=%s --tlscert=%s --tlskey=%s -H %s --strategy %s --advertise %s", | 		cmd := fmt.Sprintf("manage --tlsverify --tlscacert=%s --tlscert=%s --tlskey=%s -H %s --strategy %s --advertise %s", | ||||||
| 			authOptions.CaCertRemotePath, | 			authOptions.CaCertRemotePath, | ||||||
| 			authOptions.ServerCertRemotePath, | 			authOptions.ServerCertRemotePath, | ||||||
| 			authOptions.ServerKeyRemotePath, | 			authOptions.ServerKeyRemotePath, | ||||||
| 			swarmOptions.Host, | 			swarmOptions.Host, | ||||||
| 			swarmOptions.Strategy, | 			swarmOptions.Strategy, | ||||||
| 			advertiseInfo, | 			advertiseMasterInfo, | ||||||
| 		) | 		) | ||||||
| 
 | 
 | ||||||
| 		cmdMaster := strings.Fields(cmd) | 		cmdMaster := strings.Fields(cmd) | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue