Skip to content

Commit 53f9d4f

Browse files
committed
fix ips for vagrant machines
1 parent a306edb commit 53f9d4f

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Vagrantfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Vagrant.configure(2) do |config|
1515
ubuntu1604.vm.provision :shell, inline: 'systemctl restart docker.service'
1616
# start one docker container
1717
ubuntu1604.vm.provision :shell, inline: 'docker run -d ubuntu /bin/bash -c "while true; do echo hello world; sleep 1; done"'
18+
ubuntu1604.vm.network 'private_network', ip: '192.168.34.101'
1819
end
1920

2021
config.vm.define :centos7 do |centos7|
@@ -28,6 +29,7 @@ Vagrant.configure(2) do |config|
2829
centos7.vm.provision :shell, inline: 'systemctl restart docker.service'
2930
# start one docker container
3031
centos7.vm.provision :shell, inline: 'docker run -d ubuntu /bin/bash -c "while true; do echo hello world; sleep 1; done"'
32+
centos7.vm.network 'private_network', ip: '192.168.34.102'
3133
end
3234

3335
config.vm.define :debian8 do |debian8|
@@ -44,5 +46,6 @@ Vagrant.configure(2) do |config|
4446
debian8.vm.provision :shell, inline: 'systemctl restart docker.service'
4547
# start one docker container
4648
debian8.vm.provision :shell, inline: 'docker run -d ubuntu /bin/bash -c "while true; do echo hello world; sleep 1; done"'
49+
debian8.vm.network 'private_network', ip: '192.168.34.103'
4750
end
4851
end

0 commit comments

Comments
 (0)