1
0
mirror of https://github.com/bingohuang/docker-labs.git synced 2025-07-13 09:12:43 +08:00

Add new parameter due to API change

This commit is contained in:
Marcos Lilljedahl 2017-04-11 14:53:33 -03:00
parent 499245efb2
commit 8b00e7d132

View File

@ -79,7 +79,7 @@ func SetInstanceSwarmPorts(i *Instance) error {
services[t.ServiceID] = []uint16{}
}
for serviceID, _ := range services {
s, _, err := i.dockerClient.ServiceInspectWithRaw(context.Background(), serviceID)
s, _, err := i.dockerClient.ServiceInspectWithRaw(context.Background(), serviceID, types.ServiceInspectOptions{})
if err != nil {
return err
}