Honestly, for me it looks like a wasting time. If you want to have simplicity - install Docker Toolbox, which will help you with getting access to docker with all environment variables. If do not need simplicity - you probably want to handle multiple docker hosts, including VM, Linux machines, Cloud instances - this is why you want to have an option to switch between docker environments using `eval $(...)`. Also you can use something like <a href="https:&#x2F;&#x2F;github.com&#x2F;Tarrasch&#x2F;zsh-autoenv" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;Tarrasch&#x2F;zsh-autoenv</a> to automatically call this command in specific folders.<p>And if you really need docker-lite- you do not need to write it in go, just do<p>Run that once (do sudo or any other crazy stuff):<p>```
echo $(docker-machine ip dev) local.docker  &gt;&gt; &#x2F;etc&#x2F;hosts
```<p>Add that to `.bashrc`<p>```
eval $(docker-machine eval dev)
```