Docker部署最纯粹的V2Ray

参考这里:https://toutyrater.github.io/app/docker-deploy-v2ray.html

安装docker

apt install -y docker.io
systemctl enable docker
systemctl start docker

执行 – 一行到底

mkdir -p v2ray && \
wget -O ./v2ray/config.json https://file.10244201.xyz/_v2config.json && \
sudo docker run -d \
--name v2_hone \
-v $(pwd)/v2ray:/etc/v2ray \
-p 20142:20142 \
--restart always \
-e TZ=Asia/Shanghai \
v2ray/official v2ray -config=/etc/v2ray/config.json

# docker start v2_hone
# docker stop v2_hone
# docker logs v2_hone
# docker restart v2_hone

客户端配置

- name: "v2_target_host"
  type: vmess
  server: x.x.x.x # 可修改
  port: 20142 # 可修改
  uuid: 0107cab3-cf00-4ec6-b613-cba7b99be210 # 可修改
  alterId: 64
  cipher: auto
  # tls: false
  network: tcp
  # ws-path: N/A
  # Host: N/A
  skip-cert-verify: true     #默认false

查看docker内的log

docker exec  v2_hone tail -f /var/log/v2ray/access.log

2 thoughts on “Docker部署最纯粹的V2Ray”

  1. Pingback: 今天买了个大家伙-企鹅小屋深港 IPLC 500M – 1024 & 4201

  2. Pingback: CloudIPLC 沪日专线 – 1C512M5G 100G双线流量@60M口子年付822 – 1024 & 4201

Leave a Reply