V
V
Vladyslav2021-02-03 22:17:39
Node.js
Vladyslav, 2021-02-03 22:17:39

Why is port 3000 not opening - docker run --name node-con -it -p 3000:8080 avgona/node?

Why doesn't my server start on port 3000?

FROM alpine
VOLUME /home/server

WORKDIR /home/server

COPY ./ /home/server/

EXPOSE 8080

RUN apk add npm && npm i -g http-server 

CMD http-server


docker build -t avgona/node .
docker run --name node-con -it -p 3000:8080 avgona/node


601af6c582f70288456802.png
On my localhost:3000 it gives - page not found

... Must be like the guy in YouTube ...
601af876ee4a6824330207.png

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question