Vagrant, docker and Ubuntu UTrusty

When running vagrant on network that was connected to VPN, I was seeing that vagrant provisioning of docker containers had problems with pulling some of the updates for vagrant box because it wasn’t able to identify how to get to with an error

Failed to fetch

This is what helped me and you can try to add this line to the Vagrantfile somewhere before you do docker provisioning:

config.vm.provision :shell, :inline => "echo 'nameserver' | sudo tee /etc/resolv.conf &> /dev/null", :privileged => true

This way, vagrant will attempt to use external DNS service, which in my case is

Leave a Reply

Your email address will not be published.