OpenEVSE / openevse_wifi_server

15 stars 11 forks source link

Cannot connect to docker container #9

Closed glynhudson closed 5 years ago

glynhudson commented 5 years ago

Docker container builds and runs successfully however I cannot connect to it via http://localhost:3000. Looking at the dockerfile it looks like the port should be exposed automatically.

docker build .
Sending build context to Docker daemon  292.4kB
Step 1/11 : FROM node:10-jessie
 ---> 2f88282a1e34
Step 2/11 : ARG PORT=3000
 ---> Using cache
 ---> 24e51f76067b
Step 3/11 : ENV PORT $PORT
 ---> Using cache
 ---> 317ba53c42e5
Step 4/11 : EXPOSE $PORT
 ---> Using cache
 ---> affefb15e781
Step 5/11 : ARG NODE_ENV=production
 ---> Using cache
 ---> c982e0111599
Step 6/11 : ENV NODE_ENV $NODE_ENV
 ---> Using cache
 ---> 5fd791b4fce8
Step 7/11 : WORKDIR /app
 ---> Using cache
 ---> cf5b94b8ef92
Step 8/11 : COPY . /app
 ---> Using cache
 ---> 7926394bc5bd
Step 9/11 : RUN npm install
 ---> Using cache
 ---> c4476af2a5f7
Step 10/11 : USER node
 ---> Using cache
 ---> e14235547964
Step 11/11 : CMD [ "npm", "start" ]
 ---> Using cache
 ---> 045fc0fd05a3
Successfully built 045fc0fd05a3
docker run 045fc0fd05a3

> openevse_wifi@1.0.2 start /app
> node src/app.js

OpenEVSE WiFi Simulator listening on port 3000!

Trying to expose the port manually does not seem to make a difference

docker run --expose 3000 045fc0fd05a3

Am I missing any steps?