Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

230
Views
Docker image cannot connect on localhost

I am using this Dockerfile to create an image and start a container:

FROM node:6.1.0-wheezy 
RUN mkdir /usr/src/goof
COPY . /usr/src/goof
WORKDIR /usr/src/goof

RUN npm install
EXPOSE 3112
EXPOSE 31337
CMD ["npm", "start"]

So the image was created and also the container started but when I try to access it using localhost:3112 is not working.
Does anybody know what could be the problem ?

This is the code structure: enter image description here

and this is the command how I start the container docker run --rm -p 3112:3112 --name rce rce

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

As you mention in the comments it looks that you expose the wrong port for your node app

so all you need is to expose port 3113 for your app and when you run your container will be something like this

docker run --rm -p 3113:3113 -p 3112:3112 --name rce rce
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!