Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

Golang SDK for swarm mode - swarmInit #388

@edesai

Description

@edesai

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions