It aims to use the right docker machine for the right project.
- Clone the
dmenv
project :
$ git clone https://github.com/pointcom/dmenv.git ~/.dmenv
- Add
dmenv
path to your shell :
$ echo 'export PATH="$HOME/.dmenv/bin:$PATH"' >> ~/.bash_profile
- add a
.dmenv
in the root of your project with his name :
myawesomeproject
Now every docker commands you will run on this directory will automatically use the docker machine myawesomeproject
.
This project is inspired by the Rbenv project from "Sam Stephenson" : https://github.com/sstephenson/rbenv