From c679404695f142fbca6d970a826ba3775892c151 Mon Sep 17 00:00:00 2001 From: Robin Schneider Date: Tue, 11 Aug 2015 23:18:41 +0200 Subject: [PATCH 1/2] Quick read of ipv6 docs and small fixes. * Why on earth does one directly edit the systemd/system/docker.service file just to add a start argument? * Fixed typos. * I have not fully tested it yet, but I will when I have time. --- docs/ipv6.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/docs/ipv6.md b/docs/ipv6.md index 0916d10..f2c6443 100644 --- a/docs/ipv6.md +++ b/docs/ipv6.md @@ -1,6 +1,6 @@ # IPv6 Support -This is a work in progress, more polish to follow. Use the `dev` git branch and `dev` docker image tag for testing. +This is a work in progress, more polish to follow. ## Tunnel IPv6 Address To OpenVPN Clients @@ -13,7 +13,7 @@ Systemd is used to setup a static route and Debian 8.1 or later is recommended a The tutorial uses a free tunnel from [tunnelbroker.net](https://tunnelbroker.net/) to get a /64 and /48 prefix allocated to me. The tunnel endpoint is less then 3 ms away from Digital Ocean's San Francisco datacenter. -Place the following in `/etc/network/interfaces`. Relace `PUBLIC_IP` with your host's public IPv4 address and replace 2001:db8::2 and 2001:db8::1 with the corresponding tunnel endpoints: +Place the following in `/etc/network/interfaces`. Replace `PUBLIC_IP` with your host's public IPv4 address and replace 2001:db8::2 and 2001:db8::1 with the corresponding tunnel endpoints: auto he-ipv6 iface he-ipv6 inet6 v4tunnel @@ -37,13 +37,14 @@ If this doesn't work, figure it out. It may be necessary to add an firewall rul ### Step 2 — Update Docker's Init To Enable IPv6 Support -Copy the system's existing docker file and append the `--ipv6` argument to the end of the command line: - sed -e 's:^\(ExecStart.*\):\1 --ipv6:' /lib/systemd/system/docker.service | tee /etc/systemd/system/docker.service +Append the `--ipv6` argument to the `DOCKER_OPTS` variable in: + + /etc/default/docker Reload the daemon and restart docker so that it takes affect: - systemctl daemon-reload && systemctl restart docker.service + service docker restart ### Step 3 — Setup the systemd Unit File From 7007c49d3427912783d4c58281f9abb955857bf5 Mon Sep 17 00:00:00 2001 From: Robin Schneider Date: Wed, 12 Aug 2015 22:04:01 +0200 Subject: [PATCH 2/2] Reverted docker service restart command to use systemctl directly. --- docs/ipv6.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/ipv6.md b/docs/ipv6.md index f2c6443..2fdfb1f 100644 --- a/docs/ipv6.md +++ b/docs/ipv6.md @@ -44,7 +44,7 @@ Append the `--ipv6` argument to the `DOCKER_OPTS` variable in: Reload the daemon and restart docker so that it takes affect: - service docker restart + systemctl restart docker.service ### Step 3 — Setup the systemd Unit File