I know docker only listens to pid 1 and in case that pid exits (or turns into a daemon) it thinks the program exited and the container is shut down.
When apache-spark is started the ./start-master.sh
script how can I kept the container running?
I do not think: while true; do sleep 1000;
done is an appropriate solution.
E.g. I used command: sbin/start-master.sh
to start the master. But it keeps shutting down.
How to keep it running when started with docker-compose?