Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to share C drive on Docker for Windows

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.

like image 670
user2233706 Avatar asked Feb 09 '17 14:02

user2233706


People also ask

Why is Docker not working Windows 10?

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.

Does Docker work on Windows 10 enterprise?

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.

Is Docker compatible with Windows 11?

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.

Is Docker compatible with Windows?

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.


1 Answers

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

like image 128
Tarun Lalwani Avatar answered Oct 19 '22 02:10

Tarun Lalwani