Why Chrome can't inspect nodejs code in Docker container?
I try to start simple nodejs server inside Docker container and debug it with chrome://inspect or WebStorm. Debugging port 9229 is binded but inspection not works. On the other hand when I run same code without docker i can inspect it in chrome://inspect and in WebStorm both well. Can anybody explain me why Chrome can't inspect nodejs code in Docker container??? Dockerfile FROM node:8.2.1-alpine WORKDIR /code COPY package.json /code/package.json RUN npm install && npm ls RUN mv /code/node_modules /node_modules COPY . /code EXPOSE 8000 EXPOSE 9229 CMD ["npm", "run", "start"] alexey@home:~/app$
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.