V
V
Vadim2020-10-09 19:42:39
Java
Vadim, 2020-10-09 19:42:39

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


Can you explain what is meant after the = sign? And as a bonus, what is jre used for in dotnetcore applications?

all the best, Vadim

Answer the question

In order to leave comments, you need to log in

3 answer(s)
R
Roman Mirilaczvili, 2020-10-09
@2ord

=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.
This should be enough:
RUN apt update && \
apt install -y --no-install-recommends \
  openjdk-11-jre

# для проверки:
RUN java --version

D
Dmitry, 2020-10-09
@Tabletko

No package found with this version

W
WAR-S, 2020-10-09
@WAR-S

Run sort of defines the commands that are run by default when the container starts?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question