title: Stop Synology notification "Docker container stopped unexpectedly"
body: <p>I have a container with one Node.js script which is launched with <code>CMD npm start</code>. The script runs, does some work, and exits. The <code>node</code> process exits because no work is pending. The <code>npm start</code> exits successfully. The container then stops.</p>
  
  <p>I run this container on a Synology NAS from a cronjob via <code>docker start xxxx</code>. When it finishes, I get an alert <strong>Docker container xxxx stopped unexpectedly</strong> from their alert system. <code>docker container ls -a</code> shows its status as <code>Exited (0) 5 hours ago</code>. If I monitor <code>docker events</code> I see the event <code>die</code> with <code>exitCode=0</code></p>
  
  <p>It seems like I need to signal to the system that the exit is expected by producing a <code>stop</code> event instead of a <code>die</code> event. Is that something I can do in my image or on the <code>docker start</code> command line?</p>