# Проблема с разработкой на Windows с Docker и смонтированным томом

**URL:** https://meta.discourse.org/t/problem-with-development-on-windows-with-docker-and-mounted-volume/139523
**Category:** Development
**Created:** [23.Январь.2020 10:35:20 UTC](https://meta.discourse.org/t/problem-with-development-on-windows-with-docker-and-mounted-volume/139523 "2020-01-23T10:35:20Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [28.Январь.2020 06:36:40 UTC](https://meta.discourse.org/t/problem-with-development-on-windows-with-docker-and-mounted-volume/139523/2 "2020-01-28T06:36:40Z")

</div>

Смешно, что `@pixeltrix` наткнулся на это вчера и использовал этот хак, чтобы обойти проблему:

> <https://github.com/alphagov/e-petitions/commit/98f288501f5b9c8b6347c1c6009da7218ec7bea2>
>
> Sprockets 3.0 and later uses Base64 digests for cache paths and these
> present pr…oblems when used with NTFS on Windows which is case-insensitive.
> 
> By allowing the overriding of the cache path from an environment variable
> we can use a Docker volume to cache the asset compilation. This is actually
> faster on both Mac and Windows than the default path.

Я рекомендую просто установить WSL2 и использовать нашу настройку WSL2, которая работает намного быстрее и проще в понимании:

> [@Install Discourse on Windows for development](https://meta.discourse.org/t/beginners-guide-to-install-discourse-on-windows-10-for-development/75149):
>
> information_source This tutorial has been tested on Windows 10 and 11. To set up a development environment for Discourse on Windows, you can do it using [Windows Subsystem for Linux](https://msdn.microsoft.com/en-us/commandline/wsl/install-win10) feature. This setup requires the WSL 2 installation. It is only available in Windows 10 builds 18917 or higher. We’ll assume that you already installed [Windows Subsystem for Linux 2 (Ubuntu)](https://docs.microsoft.com/en-us/windows/wsl/install) on your Windows 10 system. WARNING: Install Ubuntu 18.04, and not 20.04 since some installations will fail on 20.04. For m…

Установка среды разработки тривиальна: просто настройте WSL2, установите Docker, а затем используйте нашу настройку Docker для разработки.

> [@Install Discourse for development using Docker](https://meta.discourse.org/t/beginners-guide-to-install-discourse-for-development-using-docker/102009):
>
> Developing using Docker Since Discourse runs in Docker, you should be able to run Discourse directly from your source directory using a Discourse development container. white_check_mark Pros: No need to install any system dependencies, no configuration needed at all for setting up a development environment quickly. x Cons: Will be slightly slower than the native dev environment on Ubuntu, and much slower than a native install on MacOS. See also [Developing Discourse using a Dev Container](https://meta.discourse.org/t/developing-discourse-using-a-dev-container/336366) …

---

_[View the full topic](https://meta.discourse.org/t/problem-with-development-on-windows-with-docker-and-mounted-volume/139523)._
