I am using windows 10 enterprise version and i have tested docker hello world web app it works just fine.
Dockerfile
FROM adoptopenjdk/openjdk11:latest
WORKDIR /app
COPY ./ ./
EXPOSE 3000
CMD ["java", "-jar", "app.jar"]
These are the steps i followed:
- cd to directory where docker file is kept
- docker build .
- docker run -d -p 3000:3000 imageid
Now inside container i am able to access the app using curl command on port 3000 But from my local machine when i do http://localhost:3000 it says page is not working. Any help is appreciated ?