From 9a469fc35cb3c2cd2b234030ea8c9ef960cd3ddd Mon Sep 17 00:00:00 2001 From: hwdsl2 Date: Tue, 17 May 2022 02:05:32 -0500 Subject: [PATCH] Update docs --- docs/advanced-usage-zh.md | 2 ++ docs/advanced-usage.md | 2 ++ 2 files changed, 4 insertions(+) diff --git a/docs/advanced-usage-zh.md b/docs/advanced-usage-zh.md index 3bf47eda..d3db8a28 100644 --- a/docs/advanced-usage-zh.md +++ b/docs/advanced-usage-zh.md @@ -25,6 +25,8 @@ VPN_DNS_SRV1=1.1.1.1 VPN_DNS_SRV2=1.0.0.1 ``` +请注意,如果 Docker 容器中已经配置了 IKEv2,你还需要编辑 Docker 容器内的 `/etc/ipsec.d/ikev2.conf` 并将 `8.8.8.8` 和 `8.8.4.4` 替换为你的其他的 DNS 服务器,然后重新启动 Docker 容器。 + ## 不启用 privileged 模式运行 高级用户可以在不启用 [privileged 模式](https://docs.docker.com/engine/reference/run/#runtime-privilege-and-linux-capabilities) 的情况下使用本镜像创建一个 Docker 容器(将以下命令中的 `./vpn.env` 替换为你自己的 `env` 文件)。 diff --git a/docs/advanced-usage.md b/docs/advanced-usage.md index 3d94ff56..b9c1b95e 100644 --- a/docs/advanced-usage.md +++ b/docs/advanced-usage.md @@ -25,6 +25,8 @@ VPN_DNS_SRV1=1.1.1.1 VPN_DNS_SRV2=1.0.0.1 ``` +Note that if IKEv2 is already set up in the Docker container, you will also need to edit `/etc/ipsec.d/ikev2.conf` inside the Docker container and replace `8.8.8.8` and `8.8.4.4` with your alternative DNS server(s), then restart the Docker container. + ## Run without privileged mode Advanced users can create a Docker container from this image without using [privileged mode](https://docs.docker.com/engine/reference/run/#runtime-privilege-and-linux-capabilities) (replace `./vpn.env` in the command below with your own `env` file).