From bf744e61c7018554565f133001cf0fcddc89b8ac Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 29 Oct 2020 15:48:43 +0100 Subject: [PATCH] comments about installation with WSL2 --- doc/docker/development/README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/doc/docker/development/README.md b/doc/docker/development/README.md index 0ec892f5cb..4ebd8c7b6c 100644 --- a/doc/docker/development/README.md +++ b/doc/docker/development/README.md @@ -46,6 +46,18 @@ docker logs -f egroupware-nginx 2>&1 | sed "s/PHP message/\\$(echo -e '\n\r')PHP * permissions of sources and data directory must be readable (sources writable) by your user, as Docker daemon runs as that user! * db volume must NOT be a directory, as the networked access from Docker VM to the Mac is to slow! +### Docker Desktop for Windows with WSL2 notes +* the directory must be in your Linux home directory ```/home/``` or short ```~/``` (you must NOT use ```/mnt/c/Users/```!) +* until we figure out docker-compose syntax for bind-mounts, you need to replace all mounts using bind-mounts, with explicit mounts, eg: +``` +service: + egroupware: + volumes: + #- data:/var/lib/egroupware + - $PWD/data:/var/lib/egroupware +``` +* internal volumes (with just names mentioned in volumes section) are fine + ### Docker Desktop for Windows notes * you can NOT use $PWD to reference the docker-compose directory, use the full path with forward slashes! * directories of volumes must be exported to Docker!