Communication is not possible due to the following error ... https://stackoverflow.com/questions/52016415/jdk-11-ssl-error-on-valid-certificate-working-in-previous-versions
Exception in thread “main” javax.net.ssl.SSLHandshakeException: extension (10) should not be presented in server_hello
FROM adoptopenjdk/openjdk11:latest RUN mkdir /opt/app COPY hoge.jar /opt/app CMD ["java", "-jar", "/opt/app/hoge.jar"]
$ docker build -t japp . $ docker run -it --rm japp
It's silly, but ... You have to put hoge.jar in the Dockerfile hierarchy COPY failed: stat /var/lib/docker/tmp/docker-builderXXXXXXX/xxx no such file or directory I get an error like this.
This time, only the code that outputs the result of HTTP communication is written, so Communication success was confirmed by outputting a response to the console.