For a moment I hit my head against the wall, and I need a little help.
I have a docker container built from a Docker file. When I try to start this container (either interactively [-i] or disconnected [-d]), it causes the following error:
2014/06/04 21:17:40 exec: "node": the executable was not found in $ PATH
This is how I try to start the container (created for security reasons):
sudo docker run -i -t -p port: port contain name: includeerversion node / path / to / node / app / nodeapp.js
What is troubling and confusing is that when I start the container without adding this command, I can write cd to the directory / path / in / node / app and run:
node nodeapp.js
This works great for me. Also, when I compare the contents of the "node" command and the output of "echo $ PATH", I see that everything is kosher. So why the hell does this refuse to admit that I am his master and that he should do what I say?
Jacob
source share