Hi, I am interfacing to a 1.12-rc4 engine, with engine-api

        client.NewClient(args.Docker_url, "v1.24", c, defaultHeaders)

But this portion of code doesn’t compile:

        swarm, err := cli.SwarmInit(context.Background(), swarm.InitRequest{
                ListenAddr:      "0.0.0.0:2377",
                ForceNewCluster: true,
                Spec: {
                        AcceptancePolicy: []Policies{
                                Policy: {
                                        Role:       "manager",
                                        Autoaccept: true,
                                },
                        }, // on this line
                },
        })

"missing type in composite literal"

Any hint/idea/help would be very appreciated. Thanks!
F.

-- 
You received this message because you are subscribed to the Google Groups 
"docker-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to docker-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to