Skip to content
This repository was archived by the owner on Apr 28, 2018. It is now read-only.
This repository was archived by the owner on Apr 28, 2018. It is now read-only.

Mounted folder appears empty using Docker-PowerShell; fine with 'docker' #178

@festus1973

Description

@festus1973

The following command executes successfully and I'm able to view my host directory "C:\temp" as "C:\scripts" on the container:

docker run -it -d --name festus -v c:\temp:c:\scripts core_usr_img

...but when performing the same action using the PowerShell module as follows...

$config = [Docker.DotNet.Models.Config]::new();
$config.Hostname="festus";
$dict = new-object 'system.collections.generic.dictionary[string,object]';
$dict.Add("C:\temp:c:\scripts",$null);
$config.Volumes = $dict;
$config;
Run-ContainerImage "core_usr_img" -Configuration $config -name "festus" -Detach -input

...the container starts up, 'scripts' appears as a folder in c:, but it's empty. The container can't see the contents of the folder. Again, this works just fine using the raw 'docker' call. Only when using the PowerShell module does this bug occur. Any ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions