# Can I install discourse with docker in Debian?

**URL:** https://meta.discourse.org/t/can-i-install-discourse-with-docker-in-debian/14305
**Category:** Self-hosting
**Tags:** unsupported-install
**Created:** [31.Март.2014 00:38:32 UTC](https://meta.discourse.org/t/can-i-install-discourse-with-docker-in-debian/14305 "2014-03-31T00:38:32Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![vanabel](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vanabel/32/108462_2.png) [@vanabel](https://meta.discourse.org/u/vanabel)
#### Post date: [31.Март.2014 00:38:32 UTC](https://meta.discourse.org/t/can-i-install-discourse-with-docker-in-debian/14305/1 "2014-03-31T00:38:32Z")

</div>

It seems that the [official doc](https://github.com/discourse/discourse_docker) is only work in Ubuntu, I trt to follow the instruction in Debian, but stuck in the step `IMPORTANT: Before You Start`.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [31.Март.2014 00:41:19 UTC](https://meta.discourse.org/t/can-i-install-discourse-with-docker-in-debian/14305/2 "2014-03-31T00:41:19Z")

</div>

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/main/docs/INSTALL.md>

---

<div class="post-metadata">

### Author: ![vanabel](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vanabel/32/108462_2.png) [@vanabel](https://meta.discourse.org/u/vanabel)
#### Post date: [31.Март.2014 00:48:16 UTC](https://meta.discourse.org/t/can-i-install-discourse-with-docker-in-debian/14305/3 "2014-03-31T00:48:16Z")

</div>

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

---

<div class="post-metadata">

### Author: ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)
#### Post date: [31.Март.2014 00:53:34 UTC](https://meta.discourse.org/t/can-i-install-discourse-with-docker-in-debian/14305/4 "2014-03-31T00:53:34Z")

</div>

He thought you were talking about the old Ubuntu install guide [here](  
[ubuntu]: [https://github.com/discourse/discourse/blob/master/docs/INSTALL-ubuntu.md](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/](http://docs.docker.io/en/latest/installation/ubuntulinux/)  
Just make sure to run everything as root or a member of `docker`.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [31.Март.2014 02:03:20 UTC](https://meta.discourse.org/t/can-i-install-discourse-with-docker-in-debian/14305/5 "2014-03-31T02:03:20Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![vanabel](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vanabel/32/108462_2.png) [@vanabel](https://meta.discourse.org/u/vanabel)
#### Post date: [31.Март.2014 04:47:37 UTC](https://meta.discourse.org/t/can-i-install-discourse-with-docker-in-debian/14305/6 "2014-03-31T04:47:37Z")

</div>

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

```plaintext
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

```

---

<div class="post-metadata">

### Author: ![GlitchMr](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/glitchmr/32/96700_2.png) [@GlitchMr](https://meta.discourse.org/u/GlitchMr)
#### Post date: [31.Март.2014 06:09:13 UTC](https://meta.discourse.org/t/can-i-install-discourse-with-docker-in-debian/14305/7 "2014-03-31T06:09:13Z")

</div>

You will need to [compile the kernel yourself](http://www.debian.org/releases/stable/amd64/ch08s06.html.en). If this is too difficult for you, you may prefer to install Ubuntu, if possible.

---

<div class="post-metadata">

### Author: ![supermathie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/supermathie/32/507518_2.png) [@supermathie](https://meta.discourse.org/u/supermathie)
#### Post date: [01.Апрель.2014 02:00:54 UTC](https://meta.discourse.org/t/can-i-install-discourse-with-docker-in-debian/14305/8 "2014-04-01T02:00:54Z")

</div>

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

```

---

<div class="post-metadata">

### Author: ![donsgood](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/donsgood/32/38552_2.png) [@donsgood](https://meta.discourse.org/u/donsgood)
#### Post date: [15.Июль.2016 04:56:21 UTC](https://meta.discourse.org/t/can-i-install-discourse-with-docker-in-debian/14305/9 "2016-07-15T04:56:21Z")

</div>

@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

---

<div class="post-metadata">

### Author: ![ashishdungdung](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ashishdungdung/32/121431_2.png) [@ashishdungdung](https://meta.discourse.org/u/ashishdungdung)
#### Post date: [14.Ноябрь.2016 02:12:44 UTC](https://meta.discourse.org/t/can-i-install-discourse-with-docker-in-debian/14305/10 "2016-11-14T02:12:44Z")

</div>

Did you got an answer to that ?

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [14.Ноябрь.2016 02:16:29 UTC](https://meta.discourse.org/t/can-i-install-discourse-with-docker-in-debian/14305/11 "2016-11-14T02:16:29Z")

</div>

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/docs/INSTALL-cloud.md at main · discourse/discourse · GitHub](https://github.com/discourse/discourse/blob/master/docs/INSTALL-cloud.md)
