title: Ports not being published
body: <p>I have this config (using the <code>go-dockerclient</code> <a href="https://github.com/fsouza/go-dockerclient" rel="nofollow noreferrer">https://github.com/fsouza/go-dockerclient</a>) for a container but it only opens the tcp port when running the container:</p>
  
  <pre><code>...
  StartConfig: docker.HostConfig{
      PortBindings: map[docker.Port][]docker.PortBinding{
          "53/tcp": {{HostIP: "0.0.0.0", HostPort: "1053"}},
          "53/udp": {{HostIP: "0.0.0.0", HostPort: "1053"}},
      },
  </code></pre>
  
  <p>I tried in every possible way without luck. When I run the container using the cmd it works as expected:</p>
  
  <pre><code>docker run -d \
      -p 0.0.0.0:1053:53/udp \
      -p 0.0.0.0:1053:53/tcp ...
  </code></pre>
  
  <p>Any ideas what am I doing wrong here?</p>
  
  <p>Container inspect output:</p>
  
  <pre><code>    "NetworkSettings": {
          "Bridge": "",
          "SandboxID": "4bdea4ccda50aaf8a3117098fdd2073943af43e8d991ddd7a0be425c5599dfbd",
          "HairpinMode": false,
          "LinkLocalIPv6Address": "",
          "LinkLocalIPv6PrefixLen": 0,
          "Ports": {
              "53/tcp": [
                  {
                      "HostIp": "0.0.0.0",
                      "HostPort": "1053"
                  }
              ]
          },
          "SandboxKey": "/var/run/docker/netns/4bdea4ccda50",
          "SecondaryIPAddresses": null,
          "SecondaryIPv6Addresses": null,
          "EndpointID": "1796f8bda73d13d354bcd8bafaf6c1f4ff1491582c3985f6b653ccc6b2226e01",
          "Gateway": "172.17.0.1",
          "GlobalIPv6Address": "",
          "GlobalIPv6PrefixLen": 0,
          "IPAddress": "172.17.0.3",
          "IPPrefixLen": 16,
          "IPv6Gateway": "",
          "MacAddress": "02:42:ac:11:00:03",
          "Networks": {
              "bridge": {
                  "IPAMConfig": null,
                  "Links": null,
                  "Aliases": null,
                  "NetworkID": "fb85e54ede4e18ae48e4c889d169d2d4cd8b2087a8c9691e094a431cb6a7eb43",
                  "EndpointID": "1796f8bda73d13d354bcd8bafaf6c1f4ff1491582c3985f6b653ccc6b2226e01",
                  "Gateway": "172.17.0.1",
                  "IPAddress": "172.17.0.3",
                  "IPPrefixLen": 16,
                  "IPv6Gateway": "",
                  "GlobalIPv6Address": "",
                  "GlobalIPv6PrefixLen": 0,
                  "MacAddress": "02:42:ac:11:00:03"
              }
          }
      }
  </code></pre>