How to get a docker image of discourse using bash on windows 10?

No, Docker does not work in the Linux subsystem on Windows 10.
(But for development, Discourse runs without Docker, and this kind of installation works on Windows 10.)