Skip to content

Instantly share code, notes, and snippets.

@kenzo0107
Last active March 17, 2017 07:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kenzo0107/a30ebcd3c92028674f35bd80de07fad1 to your computer and use it in GitHub Desktop.
Save kenzo0107/a30ebcd3c92028674f35bd80de07fad1 to your computer and use it in GitHub Desktop.
$ git clone https://github.com/rancher/os-vagrant.git
$ cd os-vagrant

// Vagrantfile 編集
$ vi Vagrantfile
$ vagrant up
  • Vagrantfile
ip = "172.19.8.#{i+100}"
node.vm.network "private_network", ip: ip
node.vm.hostname = hostname
↓
ip = "172.19.8.#{i+100}"
node.vm.network "private_network", ip: ip
node.vm.network :forwarded_port, guest: 8080, host: 8080
node.vm.hostname = hostname
$ vagrant ssh
[rancher@rancher ~]$ sudo docker run -d -p 8080:8080 rancher/server
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment