AtomLinter / linter-codeclimate

An Atom Linter plugin for the Code Climate CLI
http://github.com/codeclimate/codeclimate
MIT License
10 stars 5 forks source link

How to use with docker-machine? #18

Closed leonelgalan closed 8 years ago

leonelgalan commented 8 years ago

When using docker-machine, just like [codeclimate/codeclimate](https://github.com/codeclimate/codeclimate#prerequisites suggests), how can we run

eval "$(docker-machine env default)"

Without it we get the generic

Error: Your Docker setup does not support the codeclimate wrapper script:

/var/run/docker.sock must exist as a Unix domain socket
...

Just like we would if we ran codeclimate analyze without configuring our shell first as instructed by docker-machine.

leonelgalan commented 8 years ago

I though I tried everything before, but simply doing the eval statement before opening atom through the terminal does the trick. Is this the best/only way?

eval "$(docker-machine env default)"
atom .
mrb commented 8 years ago

@leonelgalan Sorry for the delayed response here. I personally have that line in my .bash_profile, which does the trick for me in general as a heavy user of docker-machine. Hope that helps.