Docker Windows 10 Port Mapping

FROM node:alpine COPY ./ ./ RUN npm install CMD ["npm", "start"] If this is your Dockerfile and your node app starts at port 8080, then logically you would think that typing http://localhost:8080 would give you access to the application. This works fine on OSX, but on a Windows 10 machine using Docker Toolkit, you will get an error message which says, that the browser can’t establish a connection to the server at localhost:8080. ...

1 min · 189 words