I have a script /init
that launches apache and neo4j. This script is already in the image ubuntu:14
. The following is the content of /init
:
service apache2 start
service neo4j start
From this image, I am creating another image with the following dockerfile
FROM ubuntu:v14
EXPOSE 80 80
ENTRYPOINT ["/init"]
When I run the command docker run -d ubuntu:v15
, the container starts and then exit. As far as I understood, -d
option runs the container in the background. Also, the script\init
launches two daemons. Why does the container exit ?