Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
hwdsl2 committed Mar 28, 2022
1 parent 7f2fa15 commit 5ec6d46
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
4 changes: 2 additions & 2 deletions README-zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,12 @@ docker image tag quay.io/hwdsl2/ipsec-vpn-server hwdsl2/ipsec-vpn-server

### 镜像对照表

有两个预构建的镜像可用。默认的基于 Alpine 的镜像大小仅 ~17MB
有两个预构建的镜像可用。默认的基于 Alpine 的镜像大小仅 ~16MB

| | 基于 Alpine | 基于 Debian |
| --------------- | ------------------------ | ------------------------------ |
| 镜像名称 | hwdsl2/ipsec-vpn-server | hwdsl2/ipsec-vpn-server:debian |
| 压缩后大小 | ~ 17 MB | ~ 61 MB |
| 压缩后大小 | ~ 16 MB | ~ 61 MB |
| 基础镜像 | Alpine Linux 3.15 | Debian Linux 11 |
| 系统架构 | amd64, arm64, arm/v7 | amd64, arm64, arm/v7 |
| Libreswan 版本 | 4.6 | 4.6 |
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,12 @@ Advanced users can [build from source code](docs/advanced-usage.md#build-from-so

### Image comparison

Two pre-built images are available. The default Alpine-based image is only ~17MB.
Two pre-built images are available. The default Alpine-based image is only ~16MB.

| | Alpine-based | Debian-based |
| ----------------- | ------------------------ | ------------------------------ |
| Image name | hwdsl2/ipsec-vpn-server | hwdsl2/ipsec-vpn-server:debian |
| Compressed size | ~ 17 MB | ~ 61 MB |
| Compressed size | ~ 16 MB | ~ 61 MB |
| Base image | Alpine Linux 3.15 | Debian Linux 11 |
| Platforms | amd64, arm64, arm/v7 | amd64, arm64, arm/v7 |
| Libreswan version | 4.6 | 4.6 |
Expand Down
3 changes: 1 addition & 2 deletions docs/advanced-usage-zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,7 @@ docker exec -it ipsec-vpn-server env TERM=xterm bash -l
# For Alpine-based image
apk add --no-cache rsyslog
rsyslogd
ipsec whack --shutdown
ipsec pluto --config /etc/ipsec.conf
rc-service ipsec restart
sed -i '/pluto\.pid/a rsyslogd' /opt/src/run.sh
exit
# For Debian-based image
Expand Down
3 changes: 1 addition & 2 deletions docs/advanced-usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,7 @@ Then run the following commands:
# For Alpine-based image
apk add --no-cache rsyslog
rsyslogd
ipsec whack --shutdown
ipsec pluto --config /etc/ipsec.conf
rc-service ipsec restart
sed -i '/pluto\.pid/a rsyslogd' /opt/src/run.sh
exit
# For Debian-based image
Expand Down

0 comments on commit 5ec6d46

Please sign in to comment.