Docker Community Forums

Share and learn in the Docker community.

How to start railo service on background


(Trang Lee) #1

Hello,
My name Trang,
I have created Docker image on https://registry.hub.docker.com/u/trangunghoa/railo-mysql/
It is run ok.
Now I created Dockerfile but I can’t start automatic Railo service. Please help me.
I have start by some commands at shell script:

exec /opt/railo/railo_ctl start
exec /opt/railo/railo_ctl start -D FOREGROUND
service railo_ctl restart
exec service railo_ctl restart

No command it work.


(Sam Saffron) #2

you need to start from some sane base image, by default nothing is installed.


(Trang Lee) #3

can you provide for me, how to start railo service, please? I must use Dockerfile.


(Trang Lee) #4

I have pushed my Dockerfile in https://github.com/trangunghoa/railo-docker.
Can you help me to detect the problem?


(Sven Dowideit) #5

What I normally do to work out startup issues, is to start the container with bash, then run the Docker CMD by hand, and then look at the logs just like I would a non containerized system.


(Trang Lee) #6

Thanks for Sven. I have resolved this problem. this prblem resolve by supervisor.


(Sven Dowideit) #7

Can you tell us what you did to resolve it? (for future readers of the forum) :slight_smile:


(Trang Lee) #8

Please looking for http://stackoverflow.com/questions/25427239/how-to-start-railo-service-in-background-on-the-docker.