A Docker-related unit test using a /var (sic!) mount succeeds correctly on Docker CE 24.0.5 on Linux/Ubuntu, but fails with Docker Desktop 24.0.2 on WSL2/Ubuntu. While I don't have hard proof I suspect an issue with the MountParser.
When running this CLI command on WSL2 with Docker Desktop, it succeeds. In contrast, the corresponding dockertest RunWithOptions fails on WSL2, whereas it succeeds on Docker CE:
[FAILED] Unexpected error:
<*docker.Error | 0xc000012438>:
API error (500): mount denied:
the source path "/var"
doesn't contains colon
{
Status: 500,
Message: "mount denied:\nthe source path \"/var\"\ndoesn't contains colon\n",
}
Preflight checklist
Ory Network Project
No response
Describe the bug
Note, I've seen and read issue #274.
A Docker-related unit test using a
/var
(sic!) mount succeeds correctly on Docker CE 24.0.5 on Linux/Ubuntu, but fails with Docker Desktop 24.0.2 on WSL2/Ubuntu. While I don't have hard proof I suspect an issue with theMountParser
.In the unit test https://github.com/thediveo/whalewatcher/blob/d4f3b7b22eb1d0b7a4e9d8a1474991b871444e83/engineclient/containerd/containerd_test.go#L139 I'm doing the equivalent of the following CLI command:
When running this CLI command on WSL2 with Docker Desktop, it succeeds. In contrast, the corresponding dockertest
RunWithOptions
fails on WSL2, whereas it succeeds on Docker CE:Reproducing the bug
https://github.com/thediveo/whalewatcher/blob/d4f3b7b22eb1d0b7a4e9d8a1474991b871444e83/engineclient/containerd/containerd_test.go#L139:
Relevant log output
No response
Relevant configuration
Version
github.com/ory/dockertest/v3 v3.10.0
On which operating system are you observing this issue?
Windows
In which environment are you deploying?
Other
Additional Context
No response