systemd-docker

wrapper for "docker run" to handle systemd quirks

Install

All systems
curl cmd.cat/systemd-docker.sh
Ubuntu
apt-get install systemd-docker
Windows (WSL2)
sudo apt-get update sudo apt-get install systemd-docker
Raspbian
apt-get install systemd-docker

systemd-docker

wrapper for "docker run" to handle systemd quirks

systemd-docker is a wrapper for "docker run" so that Docker containers can be sanely run under systemd. The key thing that this wrapper does is move the container process from the cgroups setup by Docker to the service unit's cgroup. Using this wrapper containers can be managed through systemctl or the docker CLI and everything should just stay in sync. Additionally one can leverage all the cgroup functionality of systemd and systemd-notify.