dane-m
4/6/2018 - 2:04 PM

Docker for Windows will not share drive. Complains of firewall blocking.

When sharing a drive in Docker Settings. "A firewall is blocking file Sharing between Windows and the containers. See documentation for more info."

1. Go to Hyper-V Manager -> Virtual Switch Manager -> DockerNAT -> Connection Type: change from internal to private, apply, change back to internal, apply
2. Restart MobyLinuxVM
3. Restart Docker
4. Open elevated PowerShell Prompt
5. Set Docker network profile to 'Private' Set-NetConnectionProfile -interfacealias "vEthernet (DockerNAT)" -NetworkCategory Private
6. Reset File and Printer Sharing for Microsoft Networks on DockerNAT connection in Network Connections
7. Go to Docker -> Settings -> Shared Drives and share C: