Skip to content

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

@madf0x

Description

@madf0x

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions