# How to get a docker image of discourse using bash on windows 10?

**URL:** https://meta.discourse.org/t/how-to-get-a-docker-image-of-discourse-using-bash-on-windows-10/64756
**Category:** Development
**Created:** [2017年六月19日 15:23 UTC](https://meta.discourse.org/t/how-to-get-a-docker-image-of-discourse-using-bash-on-windows-10/64756 "2017-06-19T15:23:07Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![fefrei](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fefrei/32/119538_2.png) [@fefrei](https://meta.discourse.org/u/fefrei)
#### Post date: [2017年六月19日 18:40 UTC](https://meta.discourse.org/t/how-to-get-a-docker-image-of-discourse-using-bash-on-windows-10/64756/3 "2017-06-19T18:40:08Z")

</div>

Unfortunately, this won’t work. Docker uses specific features of the Linux kernel to separate the containerized processes from the rest of the system. While Microsoft has taught the Windows kernel to execute most Linux binaries now, this approach is (currently) incompatible with Docker.

In principle, it appears that Discourse will run inside the Linux subsystem when you install it directly within Bash, similar to the [native dev installation instructions for Ubuntu](https://meta.discourse.org/t/beginners-guide-to-install-discourse-on-ubuntu-for-development/14727). @sam has left some notes on how to do this:

> [@Installation notes for Discourse on Bash for Windows](https://meta.discourse.org/t/installation-notes-for-discourse-on-bash-for-windows/48141):
>
> Here are some rough notes on how I went about install Discourse on Bash for Windows: Install required packages Mostly a cut-and-paste job from our [docker base image](https://github.com/discourse/discourse_docker/blob/master/image/base/Dockerfile). curl http://apt.postgresql.org/pub/repos/apt/ACCC4CF8.asc | sudo apt-key add - echo "deb http://apt.postgresql.org/pub/repos/apt/ $(lsb\_release -sc)-pgdg main" | sudo tee /etc/apt/sources.list.d/postgres.list sudo apt-get update sudo apt-get install build-essential git build-essential git wget \ libxslt1-dev libcurl4-open…

It looks like this is working fine, but is rather on the slow side, with an up to 10x slowdown compared to native Linux, depending on the workload. If that’s okay for development for you, just follow @sam’s instructions 🙂

---

_[View the full topic](https://meta.discourse.org/t/how-to-get-a-docker-image-of-discourse-using-bash-on-windows-10/64756)._
