You can find the code and the little bit information at this link https://github.com/Devendrabhat/Docker-HADOOP.
For running this container you have start with this command given below.
sudo docker run --privileged -v /tmp/.X11-unix/:/tmp/.X11-unix/ -e DISPLAY=$DISPLAY -e MY_UID=$(id -u) -e MY_GID=$(id -g) -it [your name] bash
There is so much stuff because by this you will get the gui for running eclipse also.
after starting you have to run
then do ./init. sh to run eclipse.