I have had this issue 3 times in the past 2 weeks. While using my balena device from the cloud, the container would restart randomly. The resin-supervisor logs would print
resin-supervisor[1626]: [2019-07-26T21:57:40.126Z] Replacing container for service **** because of config changes:
resin-supervisor[1626]: [2019-07-26T21:57:40.132Z] Non-array fields: {"added":{},"deleted":{},"updated":{"environment":{"BALENA_APP_NAME":"","RESIN_APP_NAME":""}}}
I cannot see anything in the logs because they have rotated since the last occurrence. Do you know if any changes that were made to the device when these restarts happened, even if it is not related to environment variables?