I’m using docker enterprise edition on windows server 2016. All I’m trying to do is to run the below command inside docker container using Dockerfile
jmeter -n -t nature.jmx -l nature.jtl
i tried running this command using RUN and CMD
CMD ["jmeter", "-n"," -t nature.jmx -l nature1.jtl"]
RUN "jmeter -n -t nature.jmx -l nature.jtl"
RUN jmeter -n -t nature.jmx -l nature.jtl
but none of the above command works. i keep getting the below error:
C:\Program Files\Docker\docker.exe: Error response from daemon: container 02323b3d347904331938b0d27c639975899284b06a0e2f377350
833b55f1ef46 encountered an error during CreateProcess: failure in a Windows system call: The system cannot find the file spec
ified. (0x2) extra info: {"ApplicationName":"","CommandLine":"jmeter -n -t nature.jmx -l nature1.jtl","User":"","WorkingDirec
tory":"C:\\jmeter\\apache-jmeter-3.1\\bin","Environment":{"JAVA_HOME":"C:\\ojdkbuild","JAVA_OJDKBUILD_SHA256":"7e7384636054001
499ba96d55c90fc39cbb0441281254a1e9ac8510b527a7a46","JAVA_OJDKBUILD_VERSION":"1.8.0.131-1","JAVA_OJDKBUILD_ZIP":"java-1.8.0-ope
njdk-1.8.0.131-1.b11.ojdkbuild.windows.x86_64.zip","JAVA_VERSION":"8u131","JMETER_HOME":"C:/jmeter/apache-jmeter-3.1","SET":"P
ATH=C:ProgramDataOracleJavajavapath;C:Windowssystem32;C:Windows;C:WindowsSystem32Wbem;C:WindowsSystem32WindowsPowerShellv1.0;C
:ojdkbuildbin;C:/jmeter/apache-jmeter-3.1bin;"},"EmulateConsole":false,"CreateStdInPipe":true,"CreateStdOutPipe":true,"CreateS
tdErrPipe":true,"ConsoleSize":[0,0]}.
PS C:\Users\Administrator>
Any advise on this would be helpful. Thanks in advance.