Quando eu adiciono a linha Volume na janela de encaixe, a compilação falha. Eu verifiquei as pastas existem no contêiner via PowerShell.
Erro
docker run -p 2525:2525 -p 2020:25 -p 65500-65515:65500-65515 -v c:\users\colemans\desktop\docker\minecraft\mountspigot:c:\installs\spigot -it coleman/minecraft
docker: Error response from daemon: container 26dc9c95425474b94789d576a3a43ba805924bdfd7b0f1442fcd65a309c64b7d encountered an error during Start: failure in a Windows system call: The compute system exited unexpectedly. (0xc0370106).
Arquivos & amp; Pastas nas instalações Nome dos pais -------- 1.0.1.0 Teste IIS NanoServerPackage instala o FTP instala o IIS instala o Spigot NanoServerPackage 1.0.1.0 Configuração de espigão C: \ Instalações \ Spigot \ spigot-1.12.2.jar
Execução do Docker
docker run -p 2525:2525 -p 2020:25 -p 65500-65515:65500-65515 -v c:\users\colemans\desktop\docker\minecraft\mountspigot:c:\installs\spigot -it coleman/minecraft
Arquivo do Docker
# escape=`
FROM nicholasdille/javaruntime:8u172-nano
MAINTAINER nicholas.dille@mailbox.org
SHELL [ "powershell", "-Command" ]
ENV JAVA_MEM_START=32m `
JAVA_MEM_MAX=4096m
COPY Installs c:\Installs
ADD entry.ps1 /
ENTRYPOINT c:\entry.ps1
EXPOSE 2525 25 21 25565 25575 14147 25000
VOLUME c:\installs\spigot