If you are asking, can we configure hadoop inside docker, then the answer is yes. We can easily create hadoop cluster inside docker. To create hadoop cluster we need Ram, CPU, network, volume, software etc. When you launch one docker container, it gives you all the thing except software. But you can download software for hadoop and configure inside your container.
Hope this will clear your doubt.