You can define a command for your container when you create the container. If a container created from a specified image does not have a daemon process, the container exits immediately after it is started. As a result, the container is continuously restarted and the Back-off restarting failed container warning keeps appearing.

For more information, see Create an ECI by using CentOS images.