Notice
This script is no longer required with Docker for Mac which includes an option to run Docker at startup and doesn't use docker-machine
to administer the local Docker engine.
Requirements
- Docker Machine + Docker
- curl
- A Virtualbox-driven Docker Machine called "default"
docker-machine create --driver virtualbox default
(this is the default with Docker toolkit).
Usage
The git.io URL (http://git.io/vsk46) is a shortened form of the raw url of the plist.
$ curl -sL http://git.io/vsk46 | \
sed -e "s?{{docker-machine}}?$(which docker-machine)?" \
-e "s?{{user-path}}?$(echo $PATH)?" \
>~/Library/LaunchAgents/com.docker.machine.default.plist && \
launchctl load ~/Library/LaunchAgents/com.docker.machine.default.plist
This comment has been minimized.
@andystanton, I just tried it and it works! Thanks for preparing this.
I also put the following into my
~/.bashrc
:So now I can use the
docker
command from my terminal just like if I was on Linux.