Home

Awesome

Ubuntu Docker base image with Supervisor

This is a base Docker image for building other images. Contains:

Container also:

Running a container

This base image doesn't do anything useful. It is intended for building other images on top of the base packages.

1. Download the public Docker image from Dockerhub:

 docker pull mtmacdonald/docker-base:version

2. Run the Docker image as a new Docker container:

 docker run -d --restart=always --name=appname mtmacdonald/docker-base:version

Get a terminal in a running container

1. Use docker exec to get a terminal in an already running container:

docker exec -it appname bash

Process supervision

Supervisor monitors and automatically restarts services.

1. To inspect status and manually manage services:

supervisorctl

2. To add new services, add configuration files to /etc/supervisord

See also

This image is loosely based on ideas from phusion/baseimage-docker.