title: Unable to ping google from inside ubuntu docker container
body: <p>I'm completely new to docker and linux and I'm trying to ping google from within a docker container. I'm getting the following error....</p>
  
  <pre><code>vagrant@vagrant-ubuntu-trusty-64:~$ docker run ubuntu ping google.com
  docker: Error response from daemon: OCI runtime create failed:
  container_linux.go:348: starting container process caused "exec: \"ping\":
  executable file not found in $PATH": unknown.
  </code></pre>
  
  <p>As inferred above, I'm using the <a href="https://app.vagrantup.com/ubuntu/boxes/trusty64" rel="nofollow noreferrer">ubuntu/trusty64 box</a> on vagrant. </p>
  
  <p>I've enabled a public network in my vagrantfile</p>
  
  <pre><code>  # Create a public network, which generally matched to bridged network.
    # Bridged networks make the machine appear as another physical device on
    # your network.
    config.vm.network "public_network"
  </code></pre>
  
  <p>And can ping google from the VM</p>
  
  <pre><code>vagrant@vagrant-ubuntu-trusty-64:~$ ping google.com
  PING google.com (216.58.204.46) 56(84) bytes of data.
  64 bytes from lhr25s12-in-f14.1e100.net (216.58.204.46): icmp_seq=1 ttl=52 time=29.5 ms
  64 bytes from lhr25s12-in-f14.1e100.net (216.58.204.46): icmp_seq=2 ttl=52 time=36.2 ms
  64 bytes from lhr25s12-in-f14.1e100.net (216.58.204.46): icmp_seq=3 ttl=52 time=95.7 ms
  </code></pre>
  
  <p>But not within the docker container it seems. </p>
  
  <p>I tried this solution but it didn't help - <a href="https://odino.org/cannot-connect-to-the-internet-from-your-docker-containers/" rel="nofollow noreferrer">https://odino.org/cannot-connect-to-the-internet-from-your-docker-containers/</a></p>
  
  <p>What could be the problem here?</p>
  
  <p>Thanks,</p>