Whoops, casting strings like this is incorrect.

For example, 25565 is a rune for 揝 when doing string(port).
This commit is contained in:
Dane Everitt 2019-04-03 23:54:38 -07:00
parent b69da4f43a
commit 4c6f2cf948
No known key found for this signature in database
GPG Key ID: EEA66103B3D71F53

View File

@ -9,6 +9,7 @@ import (
"github.com/docker/go-connections/nat" "github.com/docker/go-connections/nat"
"golang.org/x/net/context" "golang.org/x/net/context"
"os" "os"
"strconv"
"strings" "strings"
) )
@ -221,7 +222,7 @@ func (d *DockerEnvironment) portBindings() nat.PortMap {
binding := []nat.PortBinding{ binding := []nat.PortBinding{
{ {
HostIP: ip, HostIP: ip,
HostPort: string(port), HostPort: strconv.Itoa(port),
}, },
} }