CentOS Base image with ssh and supervisor for managing services
docker build -t ashrithr/centos-base .
Here are sample examples of using this image:
Detached mode
docker run -d ashrithr/centos-baseruns supervisord in foreground modedocker run -d ashrithr/centos-base touch test-filerunstouchcommand first then supervisord in foreground mode and its configured services
Attached Mode
docker run -it ashrithr/centos-base /bin/bashruns 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/. For an example on using this base image look at hadoop-docker.