mirror of
https://github.com/dokku/dokku.git
synced 2026-08-29 10:08:53 +02:00
Fix too many redirects
Example error message on vagrant up: Error response from daemon: Get https://registry-1.docker.io/v2/library/postgres/manifests/9.5.0: Get https://auth.docker.io/token?scope=repository%3Alibrary%2Fpostgres%3Apull&service=registry.docker.io: dial tcp: lookup auth.docker.io on 10.0.2.3:53: too many redirects
This commit is contained in:
7
Vagrantfile
vendored
7
Vagrantfile
vendored
@@ -40,6 +40,13 @@ Vagrant::configure("2") do |config|
|
||||
vm.vm.network :forwarded_port, guest: 80, host: FORWARDED_PORT
|
||||
vm.vm.hostname = "#{DOKKU_DOMAIN}"
|
||||
vm.vm.network :private_network, ip: DOKKU_IP
|
||||
|
||||
# Use the same nameserver as the host machine in order to avoid the "too many redirects" problem.
|
||||
vm.vm.provider :virtualbox do |vb|
|
||||
vb.customize ["modifyvm", :id, "--natdnshostresolver1", "off"]
|
||||
vb.customize ["modifyvm", :id, "--natdnsproxy1", "off"]
|
||||
end
|
||||
|
||||
vm.vm.provision :shell, :inline => "export DEBIAN_FRONTEND=noninteractive && apt-get update > /dev/null && apt-get -qq -y install git > /dev/null && cd /root/dokku && #{make_cmd}"
|
||||
vm.vm.provision :shell, :inline => "cd /root/dokku && make dokku-installer"
|
||||
vm.vm.provision :shell do |s|
|
||||
|
||||
Reference in New Issue
Block a user