mirror of
https://github.com/moby/moby.git
synced 2026-08-04 15:11:00 +00:00
Make Docker automatically update hostname for Swarm node
Signed-off-by: Nishant Totla <nishanttotla@gmail.com>
This commit is contained in:
@@ -94,8 +94,9 @@ func (n *nodeRunner) start(conf nodeStartConfig) error {
|
||||
control = filepath.Join(n.cluster.runtimeRoot, controlSocket)
|
||||
}
|
||||
|
||||
// Hostname is not set here. Instead, it is obtained from
|
||||
// the node description that is reported periodically
|
||||
swarmnodeConfig := swarmnode.Config{
|
||||
Hostname: n.cluster.config.Name,
|
||||
ForceNewCluster: conf.forceNewCluster,
|
||||
ListenControlAPI: control,
|
||||
ListenRemoteAPI: conf.ListenAddr,
|
||||
|
||||
Reference in New Issue
Block a user