| | 48 | ## Running the Local Docker Environment on Windows |
| | 49 | |
| | 50 | The local Docker development environment is primarily documented for macOS and Linux. |
| | 51 | However, it **can also be run successfully on Windows** with a few additional steps. |
| | 52 | |
| | 53 | ### Prerequisites (Windows) |
| | 54 | |
| | 55 | * Windows 10 or later (64-bit) |
| | 56 | * Docker Desktop for Windows |
| | 57 | * WSL 2 (Windows Subsystem for Linux) |
| | 58 | |
| | 59 | Ensure the following before proceeding: |
| | 60 | |
| | 61 | 1. Enable **WSL 2** and install a Linux distribution (Ubuntu is recommended). |
| | 62 | 2. In Docker Desktop settings: |
| | 63 | - Enable **Use the WSL 2 based engine** |
| | 64 | - Enable integration for your chosen Linux distribution |
| | 65 | |
| | 66 | ### Setup Instructions (Windows) |
| | 67 | |
| | 68 | 1. Clone the repository inside your WSL 2 Linux filesystem (not the Windows filesystem): |
| | 69 | |
| | 70 | ```bash |
| | 71 | git clone https://github.com/WordPress/wordpress-develop.git |
| | 72 | cd wordpress-develop |
| | 73 | ``` |
| | 74 | |
| | 75 | 2. From within WSL, start the Docker environment: |
| | 76 | |
| | 77 | ```bash |
| | 78 | npm install |
| | 79 | npm run env:start |
| | 80 | ``` |
| | 81 | |
| | 82 | 3. Access the site in your browser at: |
| | 83 | |
| | 84 | ``` |
| | 85 | http://localhost:8889 |
| | 86 | ``` |
| | 87 | |
| | 88 | ### Notes for Windows Users |
| | 89 | |
| | 90 | * Running Docker from within WSL provides significantly better performance. |
| | 91 | * Avoid running the project from `/mnt/c/` or other Windows-mounted paths. |
| | 92 | * File permission issues are often resolved by ensuring the project lives entirely in WSL. |
| | 93 | |
| | 94 | These steps align the Windows setup experience more closely with macOS and Linux and |
| | 95 | reduce common errors related to file syncing and permissions. |
| | 96 | |