I am running Docker Desktop for Windows on Windows 10 Enterprise. I get the following:
PS C:\Users> docker run --rm -v c:/Users:/data alpine ls /data C:\Program Files\Docker\Docker\Resources\bin\docker.exe: Error response from daemon: C: drive is not share it in Docker for Windows Settings.
From Docker settings in the Shared Drives tab, I see that the C
drive is there, but it is not checked. When I check it and press Apply, I am prompted for my password. Upon entering it successfully, the C
drive is still not checked.
Operating System. If you do not run a 64-bit version of Windows Windows 10 Pro, Enterprise, or Education; 1511 November update, Build 10586 or later, you cannot run Docker for Windows. You can install Docker Toolbox if you have a 64-bit version of Windows 7 or later. Alternately, you do have the option to upgrade.
You can install Docker on Windows 10 or 11 Professional and Enterprise editions by using the following steps. Download and install Docker Desktop and create a Docker account if you don't already have one.
Windows 11 64-bit: Pro version 21H2 or higher, or Enterprise or Education version 21H2 or higher. Windows 10 64-bit: Pro 21H1 (build 19043) or higher, or Enterprise or Education 20H2 (build 19042) or higher.
You can run both Linux and Windows programs and executables in Docker containers. The Docker platform runs natively on Linux (on x86-64, ARM and many other CPU architectures) and on Windows (x86-64). Docker Inc. builds products that let you build and run containers on Linux, Windows and macOS.
There are different problems that people face with sharing. But the common one is a non-english character based password or a password with spaces.
If you can change your password and remove spaces/special non-english characters then it should work.
Other workaround that you can try is create a local user and give it access to C: and then when sharing C:\ in docker settings, using this local user credentials
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With