+++++++++ https://hub.docker.com/r/rkalpeshk/java_in_ubuntu ++++++++++++++
docker image in which java is already setup and you can use java directly and vim editor is also added.
step 0 : run command in terminal docker pull rkalpeshk/java_in_ubuntu:latest step 1 : docker run -it rkalpeshk/java_in_ubuntu /bin/bash step 2 : Write code in java and save file with .java extension. step 3 : to execute java file run command as ( java filename.java ).