Obsolete stuff ! You should use Docker for Mac instead.
A small script which simplify NFS file sharing between OS X and a Docker host running in a local virtual machine.
When you start your Docker host, it automatically adds your shared folder to your NFS exports, and automatically mount your it from inside your Docker host.
When you stop your Docker host, it automatically removes the shared folder from your NFS exports.
Finally it provides shortcut to docker commands.
d
is a shortcut fordocker
.dm
is a shortcut fordocker-machine
dm start
will start the Docker hostdm stop
will stop the Docker hostdm restart
will stop and start again
-
clone this repository somewhere, for example inside a
~/bin
folder. -
put the following lines in your
~/.profile
(edit to your convenance):DOCKER_HELPERS_OSX_MACHINE="dev" DOCKER_HELPERS_OSX_NFS_EXPORT="/Users/julien/Workspace" source ~/bin/docker-helpers-osx/docker-helpers-osx.bash
-
reload your
~/.profile
by issuing asource ~/.profile
command.