So from my understanding as long as the process in the container is started, then docker will keep it running.
I have a base ubuntu image with apache installed. I run docker run -d <image> service apache2 start. The container does not stay up though..
4e56cadad902 | 3d0e65e37f75 | "service apache2 sta | 4 seconds ago | Exited (0) 3 seconds
docker logs <id> returns * Starting web server apache2 apache2: Could not reliably determine the server's fully qualified domain name, using 172.17.0.19 for ServerName ...done..
I verified that apache starts just fine in the image. But docker ps does not show the container. What am I doing wrong?
So from my understanding as long as the process in the container is started, then docker will keep it running.
I have a base ubuntu image with apache installed. I run
docker run -d <image> service apache2 start. The container does not stay up though..docker logs <id>returns* Starting web server apache2 apache2: Could not reliably determine the server's fully qualified domain name, using 172.17.0.19 for ServerName ...done..I verified that apache starts just fine in the image. But docker ps does not show the container. What am I doing wrong?