3 ms·
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 a
by outcoldman 11y ago
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 https://github.com/Tarrasch/zsh-autoenv https://github.com/Tarrasch/zsh-autoenv to automatically call this command in specific folders.
And if you really need docker-lite- you do not need to write it in go, just do
Run that once (do sudo or any other crazy stuff):
```
echo $(docker-machine ip dev) local.docker >> /etc/hosts
```
Add that to `.bashrc`
```
eval $(docker-machine eval dev)
```