File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -176,10 +176,7 @@ func (b *Bridge) add(containerId string, quiet bool) {
176176func (b * Bridge ) newService (port ServicePort , isgroup bool ) * Service {
177177 container := port .container
178178 defaultName := strings .Split (path .Base (container .Config .Image ), ":" )[0 ]
179- if isgroup {
180- defaultName = defaultName + "-" + port .ExposedPort
181- }
182-
179+
183180 // not sure about this logic. kind of want to remove it.
184181 hostname , err := os .Hostname ()
185182 if err != nil {
@@ -208,6 +205,9 @@ func (b *Bridge) newService(port ServicePort, isgroup bool) *Service {
208205 service .Origin = port
209206 service .ID = hostname + ":" + container .Name [1 :] + ":" + port .ExposedPort
210207 service .Name = mapDefault (metadata , "name" , defaultName )
208+ if isgroup {
209+ service .Name += "-" + port .ExposedPort
210+ }
211211 var p int
212212 if b .config .Internal == true {
213213 service .IP = port .ExposedIP
You can’t perform that action at this time.
0 commit comments