Answer the question
In order to leave comments, you need to log in
What do the following numbers mean in Dockerfile?
Hey everyone, the
following line in the Dockerfile ends up with an error (11.0.6+10-1~deb10u1' for 'openjdk-11-jre' was not found) during docker build:
RUN apt-get update && apt-get install -y --no-install-recommends openjdk-11-jre=11.0.6+10-1~deb10u1
Answer the question
In order to leave comments, you need to log in
=
You don't need to specify the exact version (after the )
to install openjdk-11-jre . Most likely, this version is no longer in the repository, since it was released newer.
And as a bonus, what is jre used for in dotnetcore applications?Not needed, in theory. These are two competing technologies. You can even lower it and see what happens without it.
RUN apt update && \
apt install -y --no-install-recommends \
openjdk-11-jre
# для проверки:
RUN java --version
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question