Shared drive not mounting after Windows password changed.
Expected behavior
Docker should respect provided volumes and ask for credentials when needed.
Actual behavior
Docker asks for credentials only from the setting page. If credentials change after that, docker just doesn't mount any volumes with no failure.
Information
- Windows 10 Pro Version 1709 Build 16299.248
- Windows domain installed (Do someone on regular Windows 10 can test please ?)
- Docker Version 17.12.0-ce-win47 (15139)
- Channel: stable
- 9c692cd
Steps to reproduce the behavior
- Configure Shared Drives in docker settings interface
- Run a docker container and mount a configured shared drive
- Stop that container
- Change your windows password
- Restart that container
- It should start with no problem, but there will be no files in your docker when it should mount the shared drive.
I can confirm this bug on my maschine with the newest version of docker:
- Windows 10 Enterprise Version 1607 (Build 14393.2189)
- Windows domain installed too
- Docker version 18.03.1-ce, build 9ee9f40
Just wasted a bunch of time today because of this.
- Windows 10 Pro Version 10.0.17134 Build 17134
- Docker Version 18.06.0-ce-win70 (19075)
- Local User Account (no Active Directory, no Microsoft Account)
Workaround:
- Open Docker Settings
- Click on the Shared Drives tab
- Deselect your shared drives
- Click Apply
- Select the drives you want to share
- Click Apply
- Docker should prompt you to re-enter your credentials
- Restart your affected Docker containers
This happened to me as well. This is creepy behaviour all over. I would have never thought docker would silently fail to mount a volume mapped to a folder on the C:-drive due to a password reset, but it does! I ended up uninstalling Docker and reinstalling it, as a part of the setup process I had to enter a user/password combo to share C:. This clued me in and finally led me here.
I have been questioning my configuration of the volume mounts in my docker.compose.yml for hours, trying different combos and failing miserably again and again (for obvious reasons, as I later learned)
sorry for the rant, hopefully this entry prevents someone else from spending hours on failing volumes
Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale comment.
Stale issues will be closed after an additional 30d of inactivity.
Prevent issues from auto-closing with an /lifecycle frozen comment.
If this issue is safe to close now please do so.
Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. /lifecycle stale
/remove-lifecycle stale /lifecycle frozen
I have the same problem. Is there a way to fix this issue without the workaround again and again?
This has been an issue for me for over a year, one that took me quite awhile to figure out initially. It's worse now (changed my password today), Docker crashes when I try to right click it in the notification tray.
Docker failed to initialize Attempted to perform an unauthorized operation.
- [x] I have tried with the latest version of my channel (Stable or Edge) see below
- [x] I have uploaded Diagnostics
- Diagnostics ID: 69AAE987-CFD6-4ED6-B7E8-B830E896B8D6/20190123065455
Information
OS: Windows 10 Enterprise Edition: Enterprise Id: 1809 Build: 17763 BuildLabName: 17763.1.amd64fre.rs5_release.180914-1434 Channel: stable
> docker version
Client: Docker Engine - Community
Version: 18.09.1
API version: 1.39
Go version: go1.10.6
Git commit: 4c52b90
Built: Wed Jan 9 19:34:26 2019
OS/Arch: windows/amd64
Experimental: false
Server: Docker Engine - Community
Engine:
Version: 18.09.1
API version: 1.39 (minimum version 1.12)
Go version: go1.10.6
Git commit: 4c52b90
Built: Wed Jan 9 19:41:49 2019
OS/Arch: linux/amd64
Experimental: true
Steps to reproduce the behavior
- Change your windows password
- It should start with no problem, but there will be no files in your docker when it should mount the shared drive.
- Attempt to open the settings via the notification tray icon to apply the workaround mentioned by ScottShingler.
- Receive Docker failed to initialize due to attempt to perform unauthorized operation. Docker crashes.
This is still an issue...
Expected behavior
Docker prompts for new password to access shared drives after a system password change.
Actual behavior
Docker starts after system restart and service runs, but can't mount a volume (Error response from daemon: error while creating mount source path '
Information
-
[x] I have tried with the latest version of my channel (Stable or Edge)
-
[x] I have uploaded Diagnostics
-
Diagnostics ID: 3943FED3-E8B8-4377-BF17-B5C25621D49D/20190126141342
-
Windows Version: Windows 10 Pro Version 1809 (OS Build 17763.253)
-
Docker for Windows Version:
Client: Docker Engine - Community
Version: 18.09.1
API version: 1.39
Go version: go1.10.6
Git commit: 4c52b90
Built: Wed Jan 9 19:34:26 2019
OS/Arch: windows/amd64
Experimental: false
Server: Docker Engine - Community
Engine:
Version: 18.09.1
API version: 1.39 (minimum version 1.12)
Go version: go1.10.6
Git commit: 4c52b90
Built: Wed Jan 9 19:41:49 2019
OS/Arch: linux/amd64
Experimental: true
Steps to reproduce the behavior
- Change Windows password
- Run a container with a volume mount
Today the windows password expired again and of course, docker mounted folder failed. When this will be fixed?
Same issue, docker noob here trying to get OSRM(Open Source Routing Machine)working on windows and failing constantly with "Input file not found!". reset the credentials and voila, it works...cmon man, this really screws with the first hour impressions. all the tutorials i had to read to get to this point make me think that docker on windows is not mature
This was fixed for me in the latest version (below). After a password change I was able to open the client and go to Settings > Shared Drive >Reset credentials.
Client: Docker Engine - Community
Version: 18.09.2
API version: 1.39
Go version: go1.10.8
Git commit: 6247962
Built: Sun Feb 10 04:12:31 2019
OS/Arch: windows/amd64
Experimental: false
Server: Docker Engine - Community
Engine:
Version: 18.09.2
API version: 1.39 (minimum version 1.12)
Go version: go1.10.6
Git commit: 6247962
Built: Sun Feb 10 04:13:06 2019
OS/Arch: linux/amd64
Experimental: true
...but I would agree that volume mounts in Docker for Windows are not robust.
That is not "fixed". it fails silently when you try to docker run -v files by saying "files not found". how are you supposed to jump from that error message to "docker doesn't know the credentials to use to access the file system"?
@kkarakk That's a fair point. By "fixed" I mean Docker no longer crashes in this case and you can actually get to reset the credentials (previously without the workaround described above you had to reinstall Docker, at least I did).
I vote for a solution where docker fails fast when a "cant mount volume"-condition occurrs. This is a fatal error that might have far-reaching-consequenses if left unchecked. I think Docker should refuse to start containers where a volume mout fails. I would prefer a descriptive error message as well, making it easy for me to diagnose the root cause of failing to mount a volume.
Any updates on this? The issue still persists, and it is REALLY frustrating as it leads to to wasting time every time the password changes. Docker should ideally prompt the user to update credentials after a password change (as other apps do), and at the very least log a descriptive error and possibly refuse to start the container for which the volume mount failed, as @Mikael-Gustavsson suggested.
Just wasted a bunch of time today because of this.
- Windows 10 Pro Version 10.0.17134 Build 17134
- Docker Version 18.06.0-ce-win70 (19075)
- Local User Account (no Active Directory, no Microsoft Account)
Workaround:
- Open Docker Settings
- Click on the Shared Drives tab
- Deselect your shared drives
- Click Apply
- Select the drives you want to share
- Click Apply
- Docker should prompt you to re-enter your credentials
- Restart your affected Docker containers
How can I execute the same in Windows 8.1?
Create a new local admin user just for Docker Desktop
- Go to Computer Management > System Tools > Local Users & Groups
- Right Click on Users folder and select New User...
- Fill UserName by DockerDesktopUser
- Fill the password fields
- Uncheck User must change password at next logon
- Check User cannot change password
- Check Password never expires
- Click on the Create button
- Right Click on DockerDesktopUser user and select Properties
- Go to the Member Of tab
- Click on Add... button
- Write Administrators (In your computer language) in the field and click on Check Names
- Click Ok > Apply > Ok
- Now on the Docker Destop prompt for Drives permissions you can use the username DockerDesktopUser/yourpassword
Your password will never expires and you won't have this issue anymore.
This is fixed with the new filesharing implementation in 2.2.0.3, so closing this ticket.
Closed issues are locked after 30 days of inactivity. This helps our team focus on active issues.
If you have found a problem that seems similar to this, please open a new issue.
Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. /lifecycle locked