Last Updated: February 25, 2016
·
702
· clonn

run docker node.js, got error, solution

run docker node.js, got error, solution

i reference this first simple node.js sever example, run on docker, but i got error.

The error message,

014/08/05 01:41:42 Post http:///var/run/docker.sock/build?rm=1&t=clonn%2Fcentos-node-hello: dial unix /var/run/docker.sock: no such file or directory

after long time, i discover that, the example, you could not add sudo… WTF, just ignore it.

note

there is a docker env Q&A in stackoverflow,

env

sudo env

that is not same setting, so docker runs error. WTF. such a fucking example.

murmur

why people love sudo so much, i have no idea..