fix parsing of hostnames when we actually want IP addresses.

`docker run -p hostname:1234:1234 busybox true` currently explodes violently because of the way containerPort and and hostPort are passed to the bridge/portmap framework. This just adjusts the parser to provide a more accurate error message.

closes #7103
Why you no like http://golang.org/pkg/net/#ParseIP ?