Docker Community Forums

Share and learn in the Docker community.

Running JDK exe file with docker file


(Abhilash128) #1

Hi,

Iam trying to build images of install_JDK.exe from docker file in silent mode.
But is giving below errors.

E:\docker>docker build -t distserv E:\docker
Sending build context to Docker daemon 1.59GB
Step 1/5 : FROM microsoft/windowsservercore
—> f8dc15f55717
Step 2/5 : COPY install_JDK.exe .
—> Using cache
—> ab4d3e2cefa4
Step 3/5 : COPY install_JDK.properties .
—> Using cache
—> 2cd86f44114d
Step 4/5 : RUN install_JDK.exe -i silent -f install_JDK.properties
—> Running in 08034b7d5c65
container 08034b7d5c656f5c5c9f4f3394e7a7734d2878e20773d2080689a5aa535dc913 encountered an error during CreateContainer: failure in a Windows system call: No hypervisor is present on this system. (0xc0351000) extra info: {“SystemType”:“Container”,“Name”:“08034b7d5c656f5c5c9f4f3394e7a7734d2878e20773d2080689a5aa535dc913”,“Owner”:“docker”,“IgnoreFlushesDuringBoot”:true,“LayerFolderPath”:“C:\ProgramData\Docker\windowsfilter\08034b7d5c656f5c5c9f4f3394e7a7734d2878e20773d2080689a5aa535dc913”,“Layers”:[{“ID”:“67d4988b-b45d-55e4-96d4-3e6529f8e4bb”,“Path”:“C:\ProgramData\Docker\windowsfilter\3e9ac0534d01b266abe1e1049b47bfc2578cd3a72b661c402da5ea80dd3301f9”},{“ID”:“84b91fc0-f947-5bb7-b8f8-9323d43bee87”,“Path”:“C:\ProgramData\Docker\windowsfilter\4d3446d11641e975416732b1879c4f904a64e8fcb2e00f3a13bece9d6f3081a1”},{“ID”:“8cdc3eaf-6b05-5c5c-b0b8-9f827a8c7fc6”,“Path”:“C:\ProgramData\Docker\windowsfilter\135253b3c1aa1c816a6b3d7db401cec69418e33aaa8aaa82d8412c09f752fd1e”},{“ID”:“7826cf00-9894-5b61-af22-146a6cfbda70”,“Path”:“C:\ProgramData\Docker\windowsfilter\44d93a26240594aaec070bde15d9f961e2c3b88da6aa938485415cbb3d9cacde”}],“HostName”:“08034b7d5c65”,“HvPartition”:true,“EndpointList”:[“50e9b503-87d7-4dcb-b79e-cd844a43db09”],“HvRuntime”:{“ImagePath”:“C:\ProgramData\Docker\windowsfilter\135253b3c1aa1c816a6b3d7db401cec69418e33aaa8aaa82d8412c09f752fd1e\UtilityVM”},“AllowUnqualifiedDNSQuery”:true}

dockerfile:

FROM microsoft/windowsservercore
COPY install_JDK.exe .
COPY install_JDK.properties .
RUN install_JDK.exe -i silent -f install_JDK.properties

install_JDK.properties :

LICENSE_KEYWORD=Proceed
INSTALL_NEW= 1
APP_HOME=C:\java\jdk1.8.0_101\
JDK_INSTALLED_PATH=C:\java\jdk1.8.0_101\

Could anyone help on this.