![]() ![]() ![]() # Installation of NVM, NPM and packages RUN mkdir /usr/local/nvmĮNV NVM_INSTALL_PATH $NVM_DIR/versions/node/v$NODE_VERSION Make sure $NVM_DIR is not pointing to something like ~/.nvm because the link will be wrong, pointing to root's user home directory. RUN ln -sf NVM_DIR/versions/node/v$NODE_VERSION/bin/npm /usr/bin/npm RUN ln -sf NVM_DIR/versions/node/v$NODE_VERSION/bin/node /usr/bin/node ![]() RUN ln -sf NVM_DIR/versions/node/v$NODE_VERSION/bin/node /usr/bin/nodejs Otherwise, without synlinks > docker run nvm node -vĭocker: Error response from daemon: OCI runtime create failed: container_linux.go:345: starting container process caused "exec: \"node\": executable file not found in $PATH": unknown.ĮRRO error waiting for container: context canceledīut if you TTY into container docker run -i -t nvm it would work regardless.Īlso, if someone builds Docker Image using custom user, you got to create symlinks with a root account, therefore: USER root Thanks, Symlinks are required if a command is passed after docker run, like: > docker run nvm node -v ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |