Add to .zshrc or .bashrc so the environment settings are loaded (DOCKER_HOST, etc.)
eval "$(docker-machine env docker-vm)"
Note you don't need to give the .plist file 'root' ownership, as scripts inside ~/Library/LaunchAgents are under 'user' ownership.
- launchd - http://launchd.info
It's not work for me, so I create a
rc.local.app
with Apple Script Editor and add it toLogin Items
.