Can I install discourse with docker in Debian?

You can get an updated kernel by using the debian-testing repository instead of stable.

If you want to only pull in the kernel packages from debian-testing, add lines in your sources.list for testing as well as stable, then pin all packages to the stable release except for the linux-image packages:

/etc/apt/preferences.d/kernel:
Package: linux-image* linux-headers* initramfs-tools
Pin: release o=Debian,a=testing
Pin-Priority: 700

Package: *
Pin: release o=Debian,a=stable
Pin-Priority: 600