Can I install discourse with docker in Debian?


(Abel Van) #1

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.

(Jeff Atwood) #2

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.

(Abel Van) #3

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

(Kane York) #4

He thought you were talking about the old Ubuntu install guide [here](

If you can get Docker installed, it’ll probably work:
Just make sure to run everything as root or a member of docker.

(Jeff Atwood) #5

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.

(Abel Van) #6

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

(Konrad Borowski) #7

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

(Michael Brown) #8

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:

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

(Ashish Dung Dung) #10

Did you got an answer to that ?

(Joshua Rosenfeld) #11

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: discourse/ at master · discourse/discourse · GitHub