title: Restarting a Node app running with pm2-runtime causes the container to disappear but app still runs
body: <p>My NodeJs App was successfully deployed inside a Docker Container. I put this command in Dockerfile:</p>
  
  <p><img src="https://i.stack.imgur.com/uaCxP.png" alt="screen shot of pm2 docs"></p>
  
  <pre><code>CMD ["pm2-runtime", "app.js"]
  </code></pre>
  
  <p>After restarting the app from the PM2 key metrics panel, the container disappeared (<code>docker ps</code> shows nothing) but strangely the app kept running. After a couple of minutes I figured out that pm2 was running it globally in the server. <code>pm2 ls</code> shows the app process.</p>
  
  <p>Is this behaviour considered normal? Can this be prevented?</p>