Skip to content
This repository has been archived by the owner on Jul 9, 2021. It is now read-only.

Commit

Permalink
Set COMPOSE_CONVERT_WINDOWS_PATHS environment variable on Windows
Browse files Browse the repository at this point in the history
Docker 18.03.0 and later have a regression which causes a "mount denied - <path> is not a valid Windows path" error when attempting to mount /var/run/docker.sock via docker-compose.yml. As documented in docker/for-win#1829, setting the `COMPOSE_CONVERT_WINDOWS_PATHS` environment variable to a truthy value works around this issue.
  • Loading branch information
mwinckler committed May 16, 2018
1 parent 75d93f2 commit c2af55b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions start.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ $p.ExitCode

Set-Item Env:TUGBOAT_IP "10.156.156.1"

# This addresses a regression in Docker 18.03.0-ce
# See https://github.com/docker/for-win/issues/1829
Set-Item Env:COMPOSE_CONVERT_WINDOWS_PATHS 1

docker-compose stop
docker-compose rm -f
docker-compose build
Expand Down

0 comments on commit c2af55b

Please sign in to comment.