Error response from daemon.....container is restarting

hello , I can connect the raspberry Pi to the resin io system and download the docker container with a simple hello world c++ app.
I don’t understand why in the terminal console window I see there is an infinite loop keep saying that " error response from daemon…container is restarting"

do you know what can I do to make the terminal working ?

thanks

Hello,
your device probably does not have a running container. If your application stops, then your container will stop. For this reason we have built an init system into most of the resin base images.

You can enable the init system in your application by adding the following variable in your Dockerfile:
ENV INITSYSTEM on

You can read more in our docs here: https://docs.resin.io/runtime/runtime/#init-system
and here: https://docs.resin.io/runtime/runtime/#using-the-dashboard-web-terminal

Best,
ilias

Hello Ilias, thank you for your suggestion.