I run docker on Windows7, make a simple spring-boot app, put it into image and run it in docker container. When i refer to my app localy (http://localhost:8080) I see the response, everything is OK. When I put it into container and run, it also runs in container, logs are ok, but port mapping doesn't works, and i can not receive answer from my local machine. Pls give an advice P.S. Tried as well to refer from outside (not via http://localhost:8080 but via external local IP of my PC: 192.168.1.10:8080) but the result is the same.
dockerfile:
FROM openjdk:8-jdk-alpine
VOLUME /tmp
ADD docker-spring.jar app.jar
ENTRYPOINT ["java", "-jar", "/app.jar"]
build: docker build -t springimg .
run: docker run -p8080:8080 springimg