mirror of
https://github.com/docker/cli.git
synced 2026-09-25 08:50:37 -04:00
Fix for #13720
Signed-off-by: Alessandro Boch <aboch@docker.com> Upstream-commit: ea180a73bc00491915d620c14877318cc33b2a73 Component: engine
This commit is contained in:
+9
@@ -686,6 +686,15 @@ func (d *driver) EndpointOperInfo(nid, eid types.UUID) (map[string]interface{},
|
||||
|
||||
m := make(map[string]interface{})
|
||||
|
||||
if ep.config.ExposedPorts != nil {
|
||||
// Return a copy of the config data
|
||||
epc := make([]types.TransportPort, 0, len(ep.config.ExposedPorts))
|
||||
for _, tp := range ep.config.ExposedPorts {
|
||||
epc = append(epc, tp.GetCopy())
|
||||
}
|
||||
m[netlabel.ExposedPorts] = epc
|
||||
}
|
||||
|
||||
if ep.portMapping != nil {
|
||||
// Return a copy of the operational data
|
||||
pmc := make([]types.PortBinding, 0, len(ep.portMapping))
|
||||
|
||||
Reference in New Issue
Block a user