fix: add advertise_addr when join the swarm, try to fix bugs in docker
This commit is contained in:
parent
bc476e398f
commit
27ff1c5636
@ -76,7 +76,7 @@ class ClusterCommunicationModule():
|
||||
# join docker swarm cluster
|
||||
token = self.client_sock.recv(1024).decode().split(' ')[-1]
|
||||
print("Receive Docker Swarm Join_Token=", token)
|
||||
status = self.node_manager.docker_client.swarm.join(remote_addrs=[f'{addr[0]}:2377'], join_token=token)
|
||||
status = self.node_manager.docker_client.swarm.join(remote_addrs=[f'{addr[0]}:2377'], join_token=token, advertise_addr=f'{addr[0]}:2377')
|
||||
|
||||
if not status:
|
||||
print("Some Errors!")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user