Skip to content

Commit 7795b6d

Browse files
authored
Modify endpoint config to take contextual strings (#317)
I don't know what the scoping is for `network.EndpointSettings`. If by chance it's global then contextual strings are needed to stop clashes. Also log networking information.
1 parent 852468c commit 7795b6d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

internal/docker/deployer.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ func deployImage(
212212
Mounts: mounts,
213213
}, &network.NetworkingConfig{
214214
EndpointsConfig: map[string]*network.EndpointSettings{
215-
hsName: {
215+
contextStr: {
216216
NetworkID: networkID,
217217
Aliases: []string{hsName},
218218
},
@@ -275,6 +275,9 @@ func deployImage(
275275
"test pollution. Remove the VOLUME in the Dockerfile to suppress this message.", containerName, vol,
276276
)
277277
}
278+
for nw, nwinfo := range inspect.NetworkSettings.Networks {
279+
log.Printf("%s network %s: %+v", containerName, nw, nwinfo)
280+
}
278281

279282
baseURL, fedBaseURL, err := endpoints(inspect.NetworkSettings.Ports, 8008, 8448)
280283
if err != nil {

0 commit comments

Comments
 (0)