title: Not able to connect to network inside docker container
body: <p>I have a CentOS 7 host on which I am running Docker. When I do a ping from my host to 8.8.8.8, ping was successful whereas same inside a docker container is not working.</p>
  
  <p>From Host</p>
  
  <pre><code>[root@linux1 ~]# ping 8.8.8.8
  PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
  64 bytes from 8.8.8.8: icmp_seq=1 ttl=47 time=31.5 ms
  64 bytes from 8.8.8.8: icmp_seq=2 ttl=47 time=31.6 ms
  ^C
  --- 8.8.8.8 ping statistics ---
  2 packets transmitted, 2 received, 0% packet loss, time 1001ms
  rtt min/avg/max/mdev = 31.592/31.617/31.643/0.179 ms
  </code></pre>
  
  <p>From Docker Container (I am using basic ubuntu image):</p>
  
  <pre><code>[root@linux1 ~]# docker run ubuntu ping 8.8.8.8
  PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
  From 172.17.0.1 icmp_seq=1 Destination Host Unreachable
  From 172.17.0.1 icmp_seq=2 Destination Host Unreachable
  From 172.17.0.1 icmp_seq=3 Destination Host Unreachable
  From 172.17.0.1 icmp_seq=4 Destination Host Unreachable
  ^C
  --- 8.8.8.8 ping statistics ---
  6 packets transmitted, 0 received, +4 errors, 100% packet loss, time 5000ms
  pipe 4
  </code></pre>
  
  <p>Any suggestions would be helpful. Thanks</p>