docker / engine-api

DEPRECATED: Please see https://github.com/docker/docker/tree/master/client
Apache License 2.0
264 stars 163 forks source link

Golang SDK for swarm mode - swarmInit #388

Open edesai opened 7 years ago

edesai commented 7 years ago

I am trying to use golang SDK for Swarm Init as follows:

resp, err := cli.SwarmInit(context.Background(), swarm.InitRequest{ListenAddr: "0.0.0.0:2377",AdvertiseAddr:"x.x.x.x",}) fmt.Printf("got resp: %s, err: %s", resp, err) I don't see the response returning the jointoken for workers. How can I get the token?