File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
4851end
You can’t perform that action at this time.
0 commit comments