Correctly map to int not string here

This commit is contained in:
Dane Everitt 2019-04-03 23:45:15 -07:00
parent e0f26e9693
commit b69da4f43a
No known key found for this signature in database
GPG Key ID: EEA66103B3D71F53

View File

@ -225,8 +225,8 @@ func (d *DockerEnvironment) portBindings() nat.PortMap {
},
}
out[nat.Port(fmt.Sprintf("%s/tcp", port))] = binding
out[nat.Port(fmt.Sprintf("%s/udp", port))] = binding
out[nat.Port(fmt.Sprintf("%d/tcp", port))] = binding
out[nat.Port(fmt.Sprintf("%d/udp", port))] = binding
}
}