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..
Written by Caesar Chi
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Nodejs
Authors
Did you know?
JavaScript on a page runs with the privileges of that origin. One altered library, tag manager, or snippet can read inputs, change what people see, and call your APIs as the user.
Security insights from Cside
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#