Whoops, casting strings like this is incorrect.
For example, 25565 is a rune for 揝 when doing string(port).
This commit is contained in:
parent
b69da4f43a
commit
4c6f2cf948
|
@ -9,6 +9,7 @@ import (
|
|||
"github.com/docker/go-connections/nat"
|
||||
"golang.org/x/net/context"
|
||||
"os"
|
||||
"strconv"
|
||||
"strings"
|
||||
)
|
||||
|
||||
|
@ -221,7 +222,7 @@ func (d *DockerEnvironment) portBindings() nat.PortMap {
|
|||
binding := []nat.PortBinding{
|
||||
{
|
||||
HostIP: ip,
|
||||
HostPort: string(port),
|
||||
HostPort: strconv.Itoa(port),
|
||||
},
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user