Can I install discourse with docker in Debian?

It seems that the official doc is only work in Ubuntu, I trt to follow the instruction in Debian, but stuck in the step IMPORTANT: Before You Start.

This install is totally unsupported, like it says in large bold header type at the top. We only support the Docker based install now. Use that old deprecated install type at your own risk.

https://github.com/discourse/discourse/blob/master/docs/INSTALL.md

What’s mean? Did you mean that the official doc is not support in self-hosted Debian system?

He thought you were talking about the old Ubuntu install guide [here](
[ubuntu]: https://github.com/discourse/discourse/blob/master/docs/INSTALL-ubuntu.md).

If you can get Docker installed, it’ll probably work: http://docs.docker.io/en/latest/installation/ubuntulinux/
Just make sure to run everything as root or a member of docker.

Oh sorry, as long as you are following the current install docs, it should work in Debian.

You will need a 3.8+ kernel though.

Can’t upgrad to 3.8+, since my apt-cache search linux-image gives:

alsa-base - ALSA driver configuration files
linux-headers-3.2.0-4-amd64 - Header files for Linux 3.2.0-4-amd64
linux-headers-3.2.0-4-rt-amd64 - Header files for Linux 3.2.0-4-rt-amd64
linux-image-3.2.0-4-amd64 - Linux 3.2 for 64-bit PCs
linux-image-3.2.0-4-amd64-dbg - Debugging symbols for Linux 3.2.0-4-amd64
linux-image-3.2.0-4-rt-amd64 - Linux 3.2 for 64-bit PCs, PREEMPT_RT
linux-image-3.2.0-4-rt-amd64-dbg - Debugging symbols for Linux 3.2.0-4-rt-amd64
linux-image-2.6-amd64 - Linux for 64-bit PCs (dummy package)
linux-image-amd64 - Linux for 64-bit PCs (meta-package)
linux-image-rt-amd64 - Linux for 64-bit PCs (meta-package), PREEMPT_RT
nvidia-kernel-3.2.0-4-amd64 - NVIDIA binary kernel module for Linux 3.2.0-4-amd6                                                                             4
linux-headers-3.2.0-0.bpo.4-amd64 - Header files for Linux 3.2.0-0.bpo.4-amd64
linux-headers-3.2.0-0.bpo.4-rt-amd64 - Header files for Linux 3.2.0-0.bpo.4-rt-a                                                                             md64
linux-image-3.2.0-0.bpo.4-amd64 - Linux 3.2 for 64-bit PCs
linux-image-3.2.0-0.bpo.4-amd64-dbg - Debugging symbols for Linux 3.2.0-0.bpo.4-                                                                             amd64
linux-image-3.2.0-0.bpo.4-rt-amd64 - Linux 3.2 for 64-bit PCs, PREEMPT_RT
linux-image-3.2.0-0.bpo.4-rt-amd64-dbg - Debugging symbols for Linux 3.2.0-0.bpo                                                                             .4-rt-amd64

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

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

@vanabel What are the benefits of using debian over ubuntu? Specifically, is there a performance benefit? I’m considering which DO OS to use… thanks

Did you got an answer to that ?

It shouldn’t matter what the server OS is as long as it supports Docker, is 64-bit Linux, and has a kernel version 3.10 or newer, you should be fine.

Check out the install docs here: https://github.com/discourse/discourse/blob/master/docs/INSTALL-cloud.md

2 Likes