I am using Docker version 1.12.2-rc1, build 45bed2c, experimental (aka Docker Beta) in Windows 10 x64 Anniversary Edition. Because this is my PC and I am the only one using it I didn’t setup any password. Now I want to share D drive with Docker but I can’t because I can’t press OK button without a password as shown in the image below:
I have the option “Password Protected Sharing” set to off in Control Panel\All Control Panel Items\Network and Sharing Center\Advanced sharing settings as shown in the image below:
No I don’t. Docker developers said this will be an option in future version but currently isn’t supported so you have to set a password in order to make it works.
Create a new user (Computer Management → System Tools → Local Users and Groups → Users → Create new user), e.g. “DockerHost”. Give it a password.
Mark “User cannot change password” & “Password never expires” (in properties of that user).
Add it to “Administrators” group (also in properties of that user).
Share the drive where projects reside with the newly created user. i.e. C:/ (Properties of drive → sharing tab → Advanced sharing → Permissions → add the newly created user for docker → give it full access ). Repeat process for specific path to projects folder (for example of another user C:/Users/OtherUser/projects) and make sure it has permissions for full access. Sometimes this is handy for refreshing sharing and make it work.
Shared Drives in docker settings - Add user credentials to Docker for Windows, using the newly created user with its password.
Our new file sharing solution doesn’t need passwords any more. Check out the latest Edge build to try it (v2.1.7.0 https://docs.docker.com/docker-for-windows/edge-release-notes/), it’s not fully released on the stable channel yet but it is coming soon.