Docker Community Forums

Share and learn in the Docker community.

Start init.d services in busybox when docker loads

Hello,

I’m trying to dockerise a very small busybox ISO so we can mimic an embedded device that runs a single process - these devices are are very small ~100Mb but have a couple of services that are requiured so we can upload the single process we wish them to run.

The boot order is stored in the /etc/init.d file and my understanding is that at startup the kernel gets the symbolic links to these services from the various /etc/rc[N] files. I know docker isn’t a VM but is there a way to get docker to start these services at startup without having to figureout the run order and write RUN /etc/init.d/ && … for every service in the dockerfile?

Many thanks!
Ollie