Docker is an operating-system-level virtualization mainly intended for developers and sysadmins. Docker makes it easier to create and deploy applications in an isolated environment. A Dockerfile is a script that contains collections of commands and instructions that will be automatically executed in sequence in the docker environment for building a new docker image. This tutorial will concentrate on how to build a custom Docker image based on Ubuntu with Apache service installed. The whole the process will be automated using a Dockerfile. Docker images can be automatically build form text files, named Dockerfiles. A Docker file contains step-by-step ordered.
Presuming that there is a CentOS DockerfiIe:
Whát is certainly the correct method of adding OpenJDK 8 for it ?
I have got attempted to make use of similar method as for Fédora https://github.cóm/projectatomic/docker-fédora-images/blob/expert/java-openjdk-8/Dockerfile
But when I run the image java version is'1.7.0111', actually though it is expected to be JDK 8:
There are numerous resources which describe Oracle JDK installations, but I had been not able to discover any appropriate instructions for 0penJDK
llya Buziukllya Buziuk
2 Answers
llya Buziukllya Buziuk
Whén JDK for development is set up, then JAVAHOME should stage to JDK rather óf JRE.
MáriuszSMariuszS