Troubleshooting - Arthyon/microservice-poc GitHub Wiki
Various issues that can be encountered when testing this PoC.
On windows: Issues with volume mounting
This can manifest itself in many different ways, but the two usual ways are: A firewall is blocking file Sharing between Windows and the containers when sharing the C-drive and various issues when starting containers like tsc not finding any source files.
To set up sharing from scratch please follow these instructions to the letter:
- Ensure no shares are requested in Docker settings (UI) -> Shared Drives
- Click
Reset Credentials - Click
Apply - Ensure that the C-drive (or whichever drive you're using) is NOT shared
- Create a local Windows user in Computer Management, password should never expire.
- Find the name of your Docker network adapter
- Run this powershell script:
Set-NetConnectionProfile -InterfaceAlias "<adapter name>" -NetworkCategory Private - Find the docker adapter's IP using
ipconfig - Check the Shared-boxes in Docker Shared drive settings
- You are prompted for a user, enter ip-address\username and the password you chose
NOTE: The IP to docker should be an internal IP (e.g. 10.0.75.1). If it is an external ip you have most likely changed some network configurations (for example setting adapter to private in some other way than using the powershell script). Reset Docker to factory defaults and start the process again to fix this.
Sharing after restarts
After each restart the adapter is usually in a faulty state, so it is necessary to run the powershell command Set-NetConnectionProfile -InterfaceAlias "<adapter name>" -NetworkCategory Private where adapter name is the name from the ipconfig-command. For example will the command for the adapter vEthernet (DockerNAT) be Set-NetConnectionProfile -InterfaceAlias "vEthernet (DockerNAT)" -NetworkCategory Private.
You may also need turn off and on file sharing on the adapter or remove and reinstall the file sharing service from the adapter if the above doesn't work.