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.
- Docker Machine + Docker
- curl
- A Virtualbox-driven Docker Machine whose name is store in
$DOCKER_MACHINE_NAME
env var
The git.io URL (https://git.io/vHZiP) is a shortened form of the raw url of the plist.
$ curl -sL https://git.io/vHZiP | \
sed -e "s?{{docker-machine}}?$(which docker-machine)?" \
-e "s?{{docker-machine-name}}?$DOCKER_MACHINE_NAME?" \
-e "s?{{user-path}}?$(echo $PATH)?" \
>~/Library/LaunchAgents/com.docker.machine.default.plist && \
launchctl load -w ~/Library/LaunchAgents/com.docker.machine.default.plist