S
S
sumyuga2015-06-14 11:28:06
Command line
sumyuga, 2015-06-14 11:28:06

How to forward NODE_PATH from Mac OS to Docker container?

Is it possible to make running app.js on the host machine (mac) run nodejs in a running Docker container? I don't want to put a working environment on the host machine, but keep it isolated in containers. But project files are kept on the file system and run from the host, not from the container. If I understand correctly, you need to write in the host's bash_profile: export NODE_PATH=/path/to/node/container
But I don't understand how to forward this path to the container if I'm on a poppy and run docker via boot2docker.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
U
Unknown Hero, 2015-06-25
@sumyuga

and run from the host, not from the container

If you are talking about "node app.js", then ...
No way.
Node (like everything else) can only be used inside a container.
You can forward ports and files (volumes).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question