Runninng Docker containers as systemd services
Starting and stopping Docker containers is easy with the docker run and docker {stop|kill} commands. By default, when the Docker daemon is restarted, running containers are also restarted. This is a great feature but sometimes you need more control over the container’s lifecycle. Imagine having a container which is linked to another one. Docker does not provide any way of specifying which container should be started when or what to do if a container dies. ...