Paths & DDEV (WSL2)
Useful path checks and PATH exports when mixing WSL and Windows-installed tools like DDEV.
Check Windows profile path from WSL
bash
wslpath "$(wslvar USERPROFILE)"Edit bash profile
bash
sudo nano ~/.bash_profile
# or: nano ~/.bashrcExample PATH
Include DDEV from the Windows install if you use it that way:
bash
export PATH="/usr/local/bin:$PATH"
export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/wsl/lib:/mnt/c/Program Files/DDEV"Adjust the DDEV path if your install location differs.
Docker host quirks
On first DDEV/Docker setup, if the daemon isn’t reachable:
bash
unset DOCKER_HOSTIf containers can’t reach the internet, check DNS inside the environment:
bash
# e.g. nameserver 1.1.1.1
sudo nano /etc/resolv.conf