From 39ce21f7f97c223220aad48fa700c110156234ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Wed, 17 May 2017 10:12:22 +0200 Subject: [PATCH] Copy `/lib/systemd/system/docker.service` to `/etc/systemd/system/docker.service` This allows later upgrading of docker without overwriting the changes indicated in the README. --- docker/README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docker/README.md b/docker/README.md index 3166e46..eb191c8 100644 --- a/docker/README.md +++ b/docker/README.md @@ -24,7 +24,9 @@ Configure Docker to use "overlay" instead of "aufs" for the images. This prevent [segfaults in auplink](https://bugs.launchpad.net/ubuntu/+source/aufs-tools/+bug/1442568). 1. Set `DOCKER_OPTS="-s overlay"` in `/etc/defaults/docker` -2. Edit the `[Service]` section of `/lib/systemd/system/docker.service`: +2. Copy `/lib/systemd/system/docker.service` to `/etc/systemd/system/docker.service`. + This allows later upgrading of docker without overwriting the changes we're about to do. +2. Edit the `[Service]` section of `/etc/systemd/system/docker.service`: 1. Add `EnvironmentFile=/etc/default/docker` 2. Append ` $DOCKER_OPTS` to the `ExecStart` line 3. Run `systemctl daemon-reload`