@@ -120,25 +120,25 @@ func getContainers(client *docker.Client) ([]*RuntimeContainer, error) {
120
120
Repository : repository ,
121
121
Tag : tag ,
122
122
},
123
- Name : strings .TrimLeft (container .Name , "/" ),
124
- Hostname : container .Config .Hostname ,
125
- Gateway : container .NetworkSettings .Gateway ,
126
- Addresses : []Address {},
127
- Env : make (map [string ]string ),
128
- Volumes : make (map [string ]Volume ),
129
- Node : SwarmNode {},
130
- Labels : make (map [string ]string ),
131
- IP : container .NetworkSettings .IPAddress ,
132
- IP6LinkLocal : container .NetworkSettings .LinkLocalIPv6Address ,
133
- IP6Global : container .NetworkSettings .GlobalIPv6Address ,
123
+ Name : strings .TrimLeft (container .Name , "/" ),
124
+ Hostname : container .Config .Hostname ,
125
+ Gateway : container .NetworkSettings .Gateway ,
126
+ Addresses : []Address {},
127
+ Env : make (map [string ]string ),
128
+ Volumes : make (map [string ]Volume ),
129
+ Node : SwarmNode {},
130
+ Labels : make (map [string ]string ),
131
+ IP : container .NetworkSettings .IPAddress ,
132
+ IP6LinkLocal : container .NetworkSettings .LinkLocalIPv6Address ,
133
+ IP6Global : container .NetworkSettings .GlobalIPv6Address ,
134
134
}
135
135
for k , v := range container .NetworkSettings .Ports {
136
136
address := Address {
137
- IP : container .NetworkSettings .IPAddress ,
138
- IP6LinkLocal : container .NetworkSettings .LinkLocalIPv6Address ,
139
- IP6Global : container .NetworkSettings .GlobalIPv6Address ,
140
- Port : k .Port (),
141
- Proto : k .Proto (),
137
+ IP : container .NetworkSettings .IPAddress ,
138
+ IP6LinkLocal : container .NetworkSettings .LinkLocalIPv6Address ,
139
+ IP6Global : container .NetworkSettings .GlobalIPv6Address ,
140
+ Port : k .Port (),
141
+ Proto : k .Proto (),
142
142
}
143
143
if len (v ) > 0 {
144
144
address .HostPort = v [0 ].HostPort
0 commit comments