CentOS Base image with ssh and supervisor for managing services
docker build -t acanubhav/centos-base .
Here are sample examples of using this image:
Detached mode
docker run -d acanubhav/centos-base
runs supervisord in foreground modedocker run -d acanubhav/centos-base touch test-file
runstouch
command first then supervisord in foreground mode and its configured services
Attached Mode
docker run -it acanubhav/centos-base /bin/bash
runs supervisord, then attaches the interactive shell
If you want to use this base image and launch services using supervisor, you could write supervisor configuration files and add them to /etc/supervisor.d/
.