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?
–DOCKER FILE

escape=`

FROM microsoft/nanoserver:latest
MAINTAINER me@me.com

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

–END DOCKER FILE

–Power shell to build and run the docker
#https://social.technet.microsoft.com/wiki/contents/articles/38652.nano-server-getting-started-in-container-with-docker.aspx
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