hi,
I am following the instructions from the following webpage:
But the following error message prompted out:
Is there any alternative image for me to proceed the tutorial? thx
Share and learn in the Docker community.
hi,
I am following the instructions from the following webpage:
But the following error message prompted out:
Is there any alternative image for me to proceed the tutorial? thx
Can you provide with your dockerfile, if i read the guide correct, you should have this in your dockerfile:
# Hello world application with custom Java runtime with just the base module and Debian slim
FROM debian:stable-slim
COPY target/openjdk-9-base_linux-x64 /opt/jdk-9
COPY target/helloworld-1.0-SNAPSHOT.jar /opt/helloworld/helloworld-1.0-SNAPSHOT.jar
# Set up env variables
ENV JAVA_HOME=/opt/jdk-9
ENV PATH=$PATH:$JAVA_HOME/bin
CMD java -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap \
-cp /opt/helloworld/helloworld-1.0-SNAPSHOT.jar org.examples.java.App
if you have this, it shoudnt come with that error you have
thx Martin, and sorry that the notification email of your reply fell into the junk email folder, so i reply you this late.
I just copied from the tutorial webpage for the content of Dockerfile:
FROM jdk-9-debian-slim
COPY target/helloworld-1.0-SNAPSHOT.jar /opt/helloworld/helloworld-1.0-SNAPSHOT.jar
CMD java -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap
-cp /opt/helloworld/helloworld-1.0-SNAPSHOT.jar org.examples.java.App
The content of your Dockerfile is at the end of that tutorial page? I guess it’s different part of tutorial?