Because in the test project, according to the docker under windows, install the CentOS7 image inside the docker, and successfully write the shell script to start the project. I want to start the project every 10S. Now the .bat content under windows is as follows
@ECHO OFF
:start
cmd /c "docker exec -it df7965e83453 /usr/local/apps/predictModel.sh"
choice /t 10 /d y /n >nul
goto start
The following docker command is used to run the predictModel.sh script inside docker
cmd /c "docker exec -it df7965e83453 /usr/local/apps/predictModel.sh"
The following is that windows executes the above command every 10s, you can change 10 to the time you need
choice /t 10 /d y /n >nul
The goto statement is to execute the .bat file in a loop