In my Dockerfile, I start a process using CMD:
# Start MyProcess
CMD ./my_process.sh >> /log/myprocess.log
my_process.sh may exit 0 according to some conditions inside that script. Is there a way to safely stop the container from running/starting? right now, it keeps restarting indefinitely