https://forums.docker.com/t/how-to-share-windows-drives-with-a-user-without-password/22933/43879
- 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.
本文档详细介绍了如何创建一个新的Windows用户,将其添加到管理员组,并为该用户分配对特定驱动器和文件夹的完全访问权限,以便在Docker中无密码共享这些驱动器。步骤包括用户创建、权限设置、驱动器共享以及在Docker设置中添加用户凭证。
7654

被折叠的 条评论
为什么被折叠?



