Make WordPress Core

Ticket #62196: windows-docker-docs.patch

File windows-docker-docs.patch, 1.7 KB (added by sachinrajcp123, 3 months ago)
  • README.md

    diff --git a/README.md b/README.md
    index 1111111..2222222 100644
    a b Requirements 
    4545* Docker
    4646* Docker Compose
    4747
     48## Running the Local Docker Environment on Windows
     49
     50The local Docker development environment is primarily documented for macOS and Linux.
     51However, 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
     59Ensure the following before proceeding:
     60
     611. Enable **WSL 2** and install a Linux distribution (Ubuntu is recommended).
     622. 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
     681. 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
     752. From within WSL, start the Docker environment:
     76
     77   ```bash
     78   npm install
     79   npm run env:start
     80   ```
     81
     823. 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
     94These steps align the Windows setup experience more closely with macOS and Linux and
     95reduce common errors related to file syncing and permissions.
     96
    4897Environment Commands
    4998
    5099```bash