Similar questions seem to exist but none of them with clear answer (at least not to me). I've an LDAP Server inside a container which comes with bin/start-ds
file. The problem is the container exits as soon as the shell script is finished. I'd understand the exit if script was simply printing a message, but in my case it starts a process. And since a process is running, i'd expect my container to run indefinitely as I started it in detach
mode. But this is not the case and it exits immediately. Any pointers would be really appreciated. Below is my simple Dockerfile
:
FROM unboundid-base:0.2
MAINTAINER helloworld
CMD ["/home/unboundid/UnboundID-DS/bin/start-ds"]