Skip to content

Latest commit

 

History

History
49 lines (32 loc) · 1.26 KB

README.md

File metadata and controls

49 lines (32 loc) · 1.26 KB

vm4docker

run docker with vmware on OS X

related to this project

Install

Install brew if you don't have it already.

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

For more information go to brew.sh.

Now you need ansible:

brew install ansible

Install the ansible roles

ansible-galaxy install yvess.vm4docker-client yvess.vm4docker-server

Put your ansible roles into your local ansible configuration management. If you are new to ansible you can use the files in ./cm as template.

Update your variables in hosts.

  • docker_hostip=192.168.13.128, ip of your docker vm
  • docker_gatewayip=192.168.13.1, ip of your gateway normally docker_host_ip with .1
  • docker_mac=0e:0c:23:bf:2e:3b, put in you mac address or your docker vm

You should get this values when you ssh into your docker vm and do ifconfig.

No run you ansible rules to setup everything.

ansible-playbook -K main.yml

enjoy your flexible docker setup.