Automagically install Docker in a VirtualBox VM with super-fast NFS mounts.
Automagically install Docker in a VirtualBox VM with super-fast NFS mounts.
.bash_profile
, .zprofile
or fish.config
(optional!)git clone https://github.com/dziemba/mobymac.git ~/.mobymac
cd ~/.mobymac
You can use a different path if you like. The directory needs to stay where it is though after running the installer, otherwise the VM won't boot the next time.
# Install with default settings
# (4096MB RAM, 50GB data disk, automatic shell integration, VM IP: 192.168.42.2)
./install.sh
# Or run the installer with custom settings
# ./install.sh [VM memory in MB] [data disk size in GB] [shell integration] [VM IP subnet]
./install.sh 2048
./install.sh 2048 30
./install.sh 2048 30 manual
./install.sh 2048 30 manual 192.168.142
auto
(default) or manual
.a.b.c
.a.b.c.1
, the VM will use a.b.c.2
.It's the same as installing - just run it again!
Run ./uninstall.sh
in your mobymac checkout.
192.168.42.2
to access docker portsDocker for Mac is an awesome project - use it if you can. Once the above issues have been resolved, this project will become obsolete.
Cannot connect to the Docker daemon at tcp://192.168.42.2:2376. Is the docker daemon running?
VBoxManage startvm mobymac --type headless
brew cask uninstall virtualbox
brew cask install virtualbox
exports: ... conflicts with existing export ...
sudo vim /etc/exports
Permission denied @ apply2files - /usr/local/lib/docker/cli-plugins
sudo rm -rf /usr/local/lib/docker
Please open an issue if you're stuck.
Feel free to open issues about feature requests or create PRs.
MIT, see LICENSE