# 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:** [June 19, 2017, 3:23pm 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:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![golden\_eagle](https://avatars.discourse-cdn.com/v4/letter/g/ba8739/32.png) [@golden\_eagle](https://meta.discourse.org/u/golden_eagle)
#### Post date: [June 19, 2017, 3:23pm UTC](https://meta.discourse.org/t/how-to-get-a-docker-image-of-discourse-using-bash-on-windows-10/64756/1 "2017-06-19T15:23:07Z")

</div>

I am very new to the concept of Docker. Can somebody help me out on how to get a docker image of discourse for Windows 10 via bash ( I have Ubuntu 14.04.5 LTS on my bash)?

---

<div class="post-metadata">

### Author: ![golden\_eagle](https://avatars.discourse-cdn.com/v4/letter/g/ba8739/32.png) [@golden\_eagle](https://meta.discourse.org/u/golden_eagle)
#### Post date: [June 19, 2017, 3:57pm UTC](https://meta.discourse.org/t/how-to-get-a-docker-image-of-discourse-using-bash-on-windows-10/64756/2 "2017-06-19T15:57:30Z")

</div>

@sam I have read your post on this topic. Could you direct me to the correct way?

---

<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: [June 19, 2017, 6:40pm 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 🙂

---

<div class="post-metadata">

### Author: ![golden\_eagle](https://avatars.discourse-cdn.com/v4/letter/g/ba8739/32.png) [@golden\_eagle](https://meta.discourse.org/u/golden_eagle)
#### Post date: [June 19, 2017, 7:02pm UTC](https://meta.discourse.org/t/how-to-get-a-docker-image-of-discourse-using-bash-on-windows-10/64756/4 "2017-06-19T19:02:31Z")

</div>

@fefrei - So is it possible that I install discourse on bash and Docker on Windows 10 and then use Docker to create Docker image of discourse?

---

<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: [June 19, 2017, 7:35pm UTC](https://meta.discourse.org/t/how-to-get-a-docker-image-of-discourse-using-bash-on-windows-10/64756/5 "2017-06-19T19:35:11Z")

</div>

No, Docker does not work in the Linux subsystem on Windows 10.  
(But for development, Discourse runs without Docker, and this kind of installation works on Windows 10.)
