Because the health-check.ps1 and setup.ps1 are both using status-check.txt for grabbing the output from dmgcmd.exe -cgc command, I noticed when the cycles (120 seconds vs 60 seconds) clash, the Container shuts down because the health check tries to delete the same text file that setup.ps1 might be accessing:
Options could have health-check.ps1 use another filename? I disabled the healthcheck in the Dockerfile as a workaround.
Because the![image](https://user-images.githubusercontent.com/46581776/120814391-d21ffd00-c51c-11eb-9682-143b24219ed8.png)
health-check.ps1
andsetup.ps1
are both usingstatus-check.txt
for grabbing the output fromdmgcmd.exe -cgc
command, I noticed when the cycles (120 seconds vs 60 seconds) clash, the Container shuts down because the health check tries to delete the same text file thatsetup.ps1
might be accessing:Options could have
health-check.ps1
use another filename? I disabled the healthcheck in the Dockerfile as a workaround.