Toggle navigation
What is Docker?
Product
Get Docker
For Desktops
Mac(Intel Chip)
Mac(Apple Chip)
Windows
Linux
Docs
Community
Create Docker ID
Docker Community Forums
Share and learn in the Docker community.
Docker Community Forums
Official Oracle Java Dockerfile
General
amithaprabath
(Amithaprabath)
October 26, 2016, 12:01pm
1
Hi,
Can anyone send me the official Oracle Java Dockerfile to me. I found it is difficult to download and install since the connection drops in the middle when the following part of the docker file is being implemented.
RUN cd /tmp &&
wget
Unauthorized Request
&&
tar xzvf jdk-8u111-linux-x64.tar.gz &&
rm -f jdk-8u111-linux-x64.tar.gz &&
mv -r jdk1.8.0_111/ /usr/local &&
echo ‘export JAVA_HOME=/usr/local/jdk1.8.0_111/’ >> ~/.bashrc &&
echo ‘export JRE_HOME=/usr/local/jdk1.8.0_111/jre’ >> ~/.bashrc &&
echo ‘export PATH=$PATH:$JAVA_HOME/bin:$JRE_HOME/bin’ >> ~/.bashrc &&
source ~/.bashrc
vp2405
(Vp2405)
October 26, 2016, 12:16pm
2
https://hub.docker.com/_/openjdk/
Related topics
Topic
Replies
Views
Activity
Add java8 on docker for Windows Host?
General
0
1047
October 9, 2016
How to get java openjdk 11 working in debian 9 docker?
General
1
4449
September 24, 2019
Build Docker image that used JAVA 11
General
docker
0
984
November 18, 2019
Dockerfile/java:oracle-java7 repo not found issue
Docker Hub
3
8788
May 6, 2015
Extracting OpenJDK 1.8 and 17, Setting Environment Variables, and Verifying Java Versions in Dockerfile
General
0
105
March 28, 2025