Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

Do not resolve mount linux abs path as windows path on windows #1704

Merged
merged 1 commit into from
May 24, 2021

Conversation

gtardif
Copy link
Contributor

@gtardif gtardif commented May 24, 2021

(eg. /var/run/docker.sock => c:/var/run/docker.sock folder)

What I did
test win mount path with filepath.IsAbs() and also `HasPrefix("/") for linux abs path...

Related issue
Fixes #1591

(not mandatory) A picture of a cute animal, if possible in relation with what you did

@github-actions github-actions bot added the local Local context (moby) label May 24, 2021
…var/run/docker.sock => c:/var/run/docker.sock folder)

Signed-off-by: guillaume.tardif <guillaume.tardif@gmail.com>
@gtardif gtardif force-pushed the fix_win_mount_socket branch from fda2ba4 to 7a25378 Compare May 24, 2021 19:55
@ndeloof
Copy link
Collaborator

ndeloof commented May 24, 2021

ok, so golang's standard library just does it wrong, nice to know.
image

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
local Local context (moby)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: Compose not exposing docker.sock in Docker Desktop for Windows/WSL
2 participants