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
How to Install oracle jdk6 on ubuntu image
Docker Hub
0
1036
March 17, 2021
Add java8 on docker for Windows Host?
General
0
1028
October 9, 2016
Dockerfile/java:oracle-java7 repo not found issue
Docker Hub
3
8762
May 6, 2015
I need to use Java 8 with docker
General
3
2625
April 16, 2018
Connecting to an OracleDB in a docker container from another java docker container
General
docker
4
36320
September 13, 2020