Can I install discourse with docker in Debian?

You will need to compile the kernel yourself. If this is too difficult for you, you may prefer to install Ubuntu, if possible.