ERROR: Mount denied: The source path "\\\\var\\\\run:/host/var/run/" is not a valid Windows path'

Updated . Posted . Visible to the public.

Windows 10

ERROR: for peer0.org2.example.com Cannot create container for service peer0.org2.example.com: Mount denied:
The source path "\\var\\run:/host/var/run/" is not a valid Windows path'

Solution:
Locate the .env file and add this at the bottom

COMPOSE_CONVERT_WINDOWS_PATHS=1

This is to instruct Docker Compose to convert windows path from linux.

Alternatively:

in Power Shell: $Env:COMPOSE_CONVERT_WINDOWS_PATHS=1

then in Git Bash: export COMPOSE_CONVERT_WINDOWS_PATHS=1 and
export MSYS_NO_PATHCONV=1

kiatng
Last edit
kiatng
Tags
Posted by kiatng to Fabric (2018-10-03 12:56)