title: How to run Websphere Liberty in debug mode inside docker container?
body: <p>I added this to my Dockerfile and the changes reflect on "docker inspect"</p>
  
  <p><code>CMD ["/opt/ibm/docker/docker-server", "debug", "defaultServer"]</code></p>
  
  <p>The server logs indicate that the server has stopped and the ports (http only, not 7777) are unbound), but the java process is still running, thus not letting the container die.</p>
  
  <p>I can go inside the container and start the server with this command and everything works fine </p>
  
  <p><code>/opt/ibm/docker/docker-server run defaultServer</code></p>
  
  <p>What am I doing wrong?</p>
  
  <p><strong>Server logs :</strong></p>
  
  <hr>
  
  <p>A CWWKE0001I: The server defaultServer has been launched. </p>
  
  <p>I CWWKE0002I: The kernel started after 2.253 seconds </p>
  
  <p>I CWWKF0007I: Feature update started. </p>
  
  <p>I CWWKF0008I: Feature update completed in
  0.250 seconds. </p>
  
  <p>A CWWKF0036I: The server defaultServer has finished gathering a list of required features. </p>
  
  <p><strong><em>A CWWKE0036I: The server defaultServer stopped after 2.804 seconds.</em></strong></p>