Install Java 8 Oracle using docker image
This image is designed to install Ubuntu and set's up Oracle Java 8. When you run this you accept and install oracle license agreement using curl.
You can pull this image by running : docker pull dornala/java8:new
Docker Pull Command