-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failing unit tests on Windows: Invalid Bind Mount Spec #84
Comments
Thanks for raising this - good idea to get the Windows issues out in the open even while the support is sadly not there. I've raised #85 to act as the main ticket for tracking Windows support. |
The prior class PathOperations is renamed to PathUtils that now supports to convert a windows path into a MinGW compatible path. Furthermore, only some paths need to be converted. Thus a new method "addHostSystemAwareFileSystemBind" for GenericContainer is introduced that only transforms paths if run on a Windows system. Fixes issue testcontainers#84 .
No problem. If I get a chance I will help out with support. On Tuesday, 1 March 2016, Richard North notifications@github.com wrote:
|
Luckily I came across this ticket and it seems I am not the only one having problems with Docker and Windows. I have already reported this error message "Invalid bind mount spec" in context of Windows 2016 TP4 and Docker as well as Windows Containers: http://superuser.com/questions/1051520/docker-windows-container-how-to-mount-a-host-folder-as-data-volume-on-windows |
hey @v-schulz , How is Windows support going? I see some changes from you on it in your fork, will you send them back? |
hi @bsideup , @rnorth and I are discussing the upcoming steps in the other thread about windows support. I think before I can merge the changes we need to resolve the CI issue. Atm there is no possibility to test the code on Windows. Another temporary possibility may be to ignore Windows-specific CI until it is possible. |
@v-schulz we started to use TestContainers on Windows today and discovered that it's not working (at all), so your changes (with some minor fixes) looks good even without CI at this moment, at least they will not break Windows support because there is no such :D |
The prior class PathOperations is renamed to PathUtils that now supports to convert a windows path into a MinGW compatible path. Furthermore, only some paths need to be converted. Thus a new method "addHostSystemAwareFileSystemBind" for GenericContainer is introduced that only transforms paths if run on a Windows system. Fixes issue testcontainers#84 .
The prior class PathOperations is renamed to PathUtils that now supports to convert a windows path into a MinGW compatible path. Furthermore, only some paths need to be converted. Thus a new method "addHostSystemAwareFileSystemBind" for GenericContainer is introduced that only transforms paths if run on a Windows system. Fixes issue testcontainers#84 .
@x97mdr @mathiasconradt just to let you know, we have Windows support as an alpha release now - please see docs here if you're interested: http://testcontainers.viewdocs.io/testcontainers-java/usage/windows_support/ |
Thanks Richard! Will try it shortly On Monday, 25 April 2016, Richard North notifications@github.com wrote:
|
@bsideup Following up our discussion in
My setup is: To work around this error testcontainers can check if there is a docker-machine environment and translate windows paths to boot2docker ones when mounting. This is possible because docker-machine mounts In fact for now I don't actually need mounts now, so I just turned off the startup checks and everything else works like a charm, so it's not so critical for me. Moreover I hope soon I will move to windows 10 with normal docker-for-windows support. |
@genuss thanks for a report! 💪 |
OK, will try to do that. Could you help me with where to look for this path generator in source code? |
@genuss probably here: testcontainers-java/core/src/main/java/org/testcontainers/utility/MountableFile.java Line 189 in 2bd025b
|
I've encountered the same issue as @genuss; however, disabling startup checks doesn't seem like a viable workaround. Am I missing something? It seems like I still get the same error because the ryuk container attempts to mount the volume regardless of whether or not the checks are run: testcontainers-java/core/src/main/java/org/testcontainers/utility/ResourceReaper.java Lines 80 to 81 in 87e22ec
testcontainers-java/core/src/main/java/org/testcontainers/DockerClientFactory.java Lines 116 to 126 in 87e22ec
|
@trevorpgray indeed that's true. For a workaround you can just downgrade to 1.5.1 version. There is no ryuk container there. |
@trevorpgray Would you like to raise a seperate issue regarding Ryuk container in Docker-Toolbox (?) environments on Windows < 10? I'll try to setup a Windows 7 VM with Docker-Toolbox soon, to have at least a testing environment available. |
(I know Windows support is not on the table right now, but thought I would note this exception here for others)
When running the unit tests on Windows (after patching for #62) I came across this problem. Looks like this is a relevant related issue: moby/moby#12751.
The text was updated successfully, but these errors were encountered: