docker配置v2fly容器
1.下载镜像
先在轩辕镜像注册账号,然后购买流量包,查找v2fly的镜像,选择合适的版本,复制免登录的下载命令
2.创建配置文件
按照新手上路创建配置文件
{
"inbounds": [
{
"port": 10086, // 服务器监听端口
"protocol": "***",
"settings": {
"clients": [
{
"id": "b831381d-6324-4d53-ad4f-8cda48b30811"
}
]
}
}
],
"outbounds": [
{
"protocol": "freedom"
}
]
}
使用神一样的工具们生成uuid来替换配置文件中的id
3.创建容器
使用下面命令创建容器
sudo docker run -d --restart=always --name v2fly -v 你创建的配置文件的绝对路径:/etc/v2fly/config.json -p 你电脑未使用的端口:10086 3lunrb13fjy52m.xuanyuan.run/v2fly/v2fly-core:v5.30.0 run -c /etc/v2fly/config.json

浙公网安备 33010602011771号