2. How to create docker container with Oracle Server JRE 8

Опубликовано: 23 Октябрь 2024
на канале: Pavan Devarakonda
2,207
22

Server JRE8 is much tiny and faster than regular JDK8
============================================
Step 1:
Check for prerequisites commands git, docker are available with following:
git version
docker version

Step 2:
Clone the github code into your machine
git clone --depth=1 https://github.com/oracle/docker-imag...

Step 3:
Navigate to OracleJava/java-8 directory
cd /root/docker-images/OracleJava/java-8

Step 4:
copy the serverjre-8 binaries to Dockerfile present directory
cp /u01/app/software/jdk/server-jre-8u131-linux-x64.tar.gz .

Step 5:
Run the build.sh shell script to create the docker image oracle/serverjre:8

./build.sh

Step 6:
check the docker images list

docker images

Step 7:
Lets create the docker container with docker run command:

docker run -it --name testjava oracle/serverjre:8 bash

To come out of the container use Ctrl+p and Ctrl+q

docker ps will show the list of containers. You can also check on the browser using http://192.168.33.100:8080

Please visit our blogs:
My FMW Experiments : https://myofmwexperiments.blogspot.com
WLST By Examples : https://wlstbyexamples.blogspot.com
WebLogic Tricks Tips: https://wlatricksntips.blogspot.com
DevOps Hunter : https://devopshunter.blogspot.com
#PavanDevarakonda