add relevant command to error message
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				continuous-integration/drone/push Build is passing
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	continuous-integration/drone/push Build is passing
				
			This commit is contained in:
		| @ -233,7 +233,7 @@ func validateExternalNetworks(ctx context.Context, client dockerClient.NetworkAP | |||||||
| 		network, err := client.NetworkInspect(ctx, networkName, types.NetworkInspectOptions{}) | 		network, err := client.NetworkInspect(ctx, networkName, types.NetworkInspectOptions{}) | ||||||
| 		switch { | 		switch { | ||||||
| 		case dockerClient.IsErrNotFound(err): | 		case dockerClient.IsErrNotFound(err): | ||||||
| 			return errors.Errorf("network %q is declared as external, but could not be found. You need to create a swarm-scoped network before the stack is deployed", networkName) | 			return errors.Errorf("network %q is declared as external, but could not be found. You need to create a swarm-scoped network before the stack is deployed, which you can do by running this on the server: docker network create -d overlay proxy", networkName) | ||||||
| 		case err != nil: | 		case err != nil: | ||||||
| 			return err | 			return err | ||||||
| 		case network.Scope != "swarm": | 		case network.Scope != "swarm": | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user