Docker Community Forums

Share and learn in the Docker community.

How can I run automatically service each time when docker container started?

docker

(Leonid1812) #1

I installed heavy application IBM Watson Explorer in a docker container. This application required to start its services manually with this list of commands:
cd /opt/IBM/es/bin/
./startccl.sh -bg
./esadmin system start

How can I run automatically these service each time when docker container started?


(Qadinc) #2

I use supervisor to run several processes, works well.

https://docs.docker.com/engine/admin/using_supervisord/


(Allan Sun) #3

Just create a bash script run these script, isn’t it?