“Docker v2fly”的版本间的差异
跳到导航
跳到搜索
Jihongchang(讨论 | 贡献) |
Jihongchang(讨论 | 贡献) |
||
第34行: | 第34行: | ||
==== 安装 acme.sh ==== | ==== 安装 acme.sh ==== | ||
− | 前置 [[Curl#%E5%AE%89%E8%A3%85|安装 curl]]<syntaxhighlight lang="shell-session"> | + | |
+ | ===== 前置 ===== | ||
+ | |||
+ | # [[Curl#%E5%AE%89%E8%A3%85|安装 curl]] | ||
+ | # 安装 socat<syntaxhighlight lang="shell-session"> | ||
+ | ~ # apk add socat | ||
+ | (1/4) Installing ncurses-terminfo-base (6.3_p20220521-r0) | ||
+ | (2/4) Installing ncurses-libs (6.3_p20220521-r0) | ||
+ | (3/4) Installing readline (8.1.2-r0) | ||
+ | (4/4) Installing socat (1.7.4.3-r0) | ||
+ | Executing busybox-1.35.0-r13.trigger | ||
+ | OK: 13 MiB in 25 packages | ||
+ | ~ # | ||
+ | </syntaxhighlight> | ||
+ | <syntaxhighlight lang="shell-session"> | ||
~ # curl https://get.acme.sh | sh -s email=haoqibaobaoji@gmail.com | ~ # curl https://get.acme.sh | sh -s email=haoqibaobaoji@gmail.com | ||
% Total % Received % Xferd Average Speed Time Time Time Current | % Total % Received % Xferd Average Speed Time Time Time Current |
2022年8月23日 (二) 01:47的版本
前置
docker 安装
拉取镜像
-bash-4.2# docker pull v2fly/v2fly-core:latest
latest: Pulling from v2fly/v2fly-core
2408cc74d12b: Pull complete
4f4fb700ef54: Pull complete
c6b373c46cb7: Pull complete
b0ec1e70028e: Pull complete
Digest: sha256:e81a0735f724b06d795aa37f19e3e02e3dfcfeb12246e62e536f7de1b12de78c
Status: Downloaded newer image for v2fly/v2fly-core:latest
docker.io/v2fly/v2fly-core:latest
-bash-4.2#
启动容器
-bash-4.2# docker run -d --network=host docker.io/v2fly/v2fly-core:latest
f6cde85f14d02da7838b0ba0f2be23a673015fc674106cd6dece94eff41d777c
-bash-4.2#
TLS
安装 acme.sh
前置
- 安装 curl
- 安装 socat
~ # apk add socat (1/4) Installing ncurses-terminfo-base (6.3_p20220521-r0) (2/4) Installing ncurses-libs (6.3_p20220521-r0) (3/4) Installing readline (8.1.2-r0) (4/4) Installing socat (1.7.4.3-r0) Executing busybox-1.35.0-r13.trigger OK: 13 MiB in 25 packages ~ #
~ # curl https://get.acme.sh | sh -s email=haoqibaobaoji@gmail.com
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 937 0 937 0 0 3216 0 --:--:-- --:--:-- --:--:-- 3231
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 212k 100 212k 0 0 1919k 0 --:--:-- --:--:-- --:--:-- 1911k
[Tue Aug 23 01:42:35 UTC 2022] Installing from online archive.
[Tue Aug 23 01:42:35 UTC 2022] Downloading https://github.com/acmesh-official/acme.sh/archive/master.tar.gz
[Tue Aug 23 01:42:36 UTC 2022] Extracting master.tar.gz
[Tue Aug 23 01:42:36 UTC 2022] It is recommended to install socat first.
[Tue Aug 23 01:42:36 UTC 2022] We use socat for standalone server if you use standalone mode.
[Tue Aug 23 01:42:36 UTC 2022] If you don't use standalone mode, just ignore this warning.
[Tue Aug 23 01:42:36 UTC 2022] Installing to /root/.acme.sh
[Tue Aug 23 01:42:36 UTC 2022] Installed to /root/.acme.sh/acme.sh
[Tue Aug 23 01:42:36 UTC 2022] No profile is found, you will need to go into /root/.acme.sh to use acme.sh
[Tue Aug 23 01:42:36 UTC 2022] Installing cron job
[Tue Aug 23 01:42:36 UTC 2022] OK
[Tue Aug 23 01:42:36 UTC 2022] Install success!
~ #