Skip to content
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

Mount("/path/host", "/path/container", ountType.ReadWrite) not working like -v /path/host:/path/container #272

Open
madf0x opened this issue Aug 16, 2022 · 1 comment

Comments

@madf0x
Copy link

madf0x commented Aug 16, 2022

Hey,

I've been trying to use FluentDocker to set up a container, that should save files to a specific path.

When I use the docker CLI directly with -v /pathHost:/pathCont the container works as expected and all files written in the pathCont while executing the container are visible on the host machine.

Doing the same with FluentDocker results in a container, that looks exactly the same when doing docker inspect on both containers, except that one label is missing:

            "desktop.docker.io/wsl-distro": "Debian",

I've tried adding that using
.WithLabel("desktop.docker.io/wsl-distro", "Debian")
or .WithLabel(new [] {"desktop.docker.io/wsl-distro", "Debian"})
... but this resulted in 2 labels without values assigned.

Can this missing label cause the problem, that one volume bind is working and the other one isn't?
I'm out of ideas for now.

@madf0x
Copy link
Author

madf0x commented Aug 16, 2022

I've managed to add the label using

        .WithLabel("\"desktop.docker.io/wsl-distro\"=\"Debian\"")

But still no luck.
Manually started using DockerCLI works, using FluentDocker doesn't.
same

Here is the Notepad++ Compare output of the two containers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant