In this tutorial I will cover how I a docker-machine lab environment using VMWare Fusion. ***
Create our lab environment
If you followed all the prerequisites you should now have a standard vmware and docker toolbox environment setup. Lets start with creating the docker-machine in VMWare Fusion.
In my lab environment I chose to use the NAT (vmware8) network. Since I have several other virtual machines that I want to keep in the same environment.
I want my VM’s to have static IP’s then I can create records in /etc/hosts on my machine and osx vm’s.
Edit the dhcpd file with your favorit edit and add your hosts after the line ####### VMNET DHCP Configuration. End of “DO NOT MODIFY SECTION” ######.
Want to use a CLI to check hosts MAC Address but during this lab lets use VMware Fusion App and check each hosts Network > Settings > Advanced Options and write down the MAC Address.
Added three host in my case, docker(munki) vm, osx client vm and a osx server vm.
Edit the hosts file with your favorit edit and add your hosts after the last line
Restart the vmnet, docker machine and your OSX VM’s.
Thats it, you now have a docker-machine running in vmware and you are ready to start your journey into the fantastic world of docker.