Does Dokcer launch the springboot project without showing port mappings?

Hello, Daniel, dockerfile written by rookie Xiaobai

FROM java:8
VOLUME /tmp
ADD newkuaidi.jar app.jar
RUN bash -c "touch /app.jar"
EXPOSE 8090
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/app.jar"]

then docker build-t test.
finally launch docker run-- net=host-p 8090t test. 8090 test
found that PORTS here is empty and my project is started normally. What is the reason for this?

Nov.13,2021

-- net=host represents the public network between the container and the host, and port mapping is not required at this time. You can first learn about the four network modes of docker

Menu