23 lines
652 B
Markdown
23 lines
652 B
Markdown
|
## docker安装v2ray
|
||
|
|
||
|
```
|
||
|
#本脚本基于https://hub.docker.com/r/teddysun/v2ray此容器
|
||
|
#时间2020年10月3日
|
||
|
#版本1.0
|
||
|
#默认端口9000
|
||
|
#ID:2ee57806-f6e4-482a-ef08-7360c04cd3e5
|
||
|
#额外ID64
|
||
|
echo "基于docker的v2ray+ws一键安装"
|
||
|
echo "欢迎使用"
|
||
|
yum -y install docker||apt update -y&&apt install docker.io -y
|
||
|
service docker start
|
||
|
mkdir -p /etc/v2ray
|
||
|
cd /etc/v2ray
|
||
|
wget https://shagain.club/wenjian/config.json
|
||
|
docker run -d -p 9000:9000 --name v2ray --restart=always -v /etc/v2ray:/etc/v2ray teddysun/v2ray
|
||
|
firewall-cmd --permanent --add-port=9000/tcp
|
||
|
firewall-cmd --reload
|
||
|
systemctl enable docker
|
||
|
echo "安装完成好好享用把"
|
||
|
|
||
|
```
|