Docker - Shared Drive (Windows)

Card Puncher Data Processing

About

shared drive

Setup

For windows

Firewall

Shared drives require port 445 to be open between the host machine and the virtual machine that runs Linux containers.

Allow connections to 10.0.75.1 on port 445 (the Windows host) from 10.0.75.2 (the virtual machine).

I ended up by giving a trust to the adapter.

Firewall Docker Trusted Adapter

Settings

See Shared drives

Make your drive accessible to your containers.

  • Docker > Settings > Shared Drive

You need to reset your credentials everytime that they will expired otherwise your bind mounts will not be available.

Docker Windows 10 Shared Drive

Test it ! With the following, you should be able to navigate your c disk inside the container at the data mount point.

docker run --rm -it -v C::/data alpine sh

Example with my computer:

cd /data/
ls
Anaconda2-Python2.7        Intel                      PhotoFiltre                System Volume Information  hiberfil.sys
Config.Msi                 Java                       Program Files              Users                      pagefile.sys
DataGrip                   Jenkins                    Program Files (x86)        WinMerge                   spark-2.2.0-bin-hadoop2.7
Dell                       JuffrouwBlom               ProgramData                WinSCP                     swapfile.sys
Documents and Settings     Notepad++                  Python27                   Windows                    tmp
Git                        OneDriveTemp               Recovery                   Windows10Upgrade
IDEA                       PerfLogs                   Recovery.txt               apache-maven-3.5.3

Documentation / Reference





Discover More
Card Puncher Data Processing
Aws - Serverless Application Model (Sam)

The AWS Serverless Application Model (AWS SAM) is an open-source framework that you can use to build serverless applications on AWS. With the AWS SAM CLI, you can invoke Lambda functions locally,...
Docker For Windows Host Settings
Docker - Installation Docker for Windows on Windows 10

In Windows 10, you install docker with Docker for Windows. The installation provides: Docker Engine, Docker CLI client, Docker Compose Docker Machine, and Kitematic. In the settings...



Share this page:
Follow us:
Task Runner