Docker Community Forums

Share and learn in the Docker community.

Windows Sever Nano can't create a volume

(Dustybandito) #1

Running Windows 10 docker with Windows server Nano.
I cannot create a VOLUME of a folder that was created with a COPY or ADD command. Does anyone know why?


FROM microsoft/nanoserver:latest

COPY Installs c:\files
EXPOSE 2525 25 21 25565 25575 14147 25000
#VOLUME c:\files


–Power shell to build and run the docker
docker system prune -f
#delete and rebuild nano,Java,Spigot
#& docker rmi microsoft/nanoserver:latest
#& docker pull microsoft/nanoserver:latest
& docker rmi nano/withfiles

& docker build -f Dockerfile.TestVolume -t nano/withfiles .
& docker run -p 2525:2525 -p 2020:25 -p 65500-65515:65500-65515 -v C:\Users\colemans\Desktop\Docker\spigotmc-build\Repo:c:\files -it nano/withfiles .

docker.exe : C:\Program Files\Docker\Docker\Resources\bin\docker.exe: Error response from daemon: container
5e927ab0ea93083ef994e20bbb3ae47706f4f55b7d66dd7087440a4888cc9910 encountered an error during Start: failure in a
Windows system call: The compute system exited unexpectedly. (0xc0370106).
At line:10 char:1

  • & docker run -p 2525:2525 -p 2020:25 -p 65500-65515:65500-65515 -v C: …
  •   + CategoryInfo          : NotSpecified: (C:\Program File.... (0xc0370106).:String) [], RemoteException
      + FullyQualifiedErrorId : NativeCommandError