Docker images are built for quick deployment in various computing cloud providers.
251
$ docker pull aiboboxx/v2ray
This pulls the latest release of V2Ray.
You must create a configuration file /etc/v2ray/config.json in host at first:
$ mkdir -p /etc/v2ray
A sample in JSON like below:
$ cat > /etc/v2ray/config.json <<EOF
{
"inbounds": [{
"port": 9000,
"protocol": "vmess",
"settings": {
"clients": [
{
"id": "11c2a696-0366-4524-b8f0-9a9c21512b02",
"level": 1,
"alterId": 64
}
]
}
}],
"outbounds": [{
"protocol": "freedom",
"settings": {}
}]
}
EOF
There are some examples of uses for v2ray-core https://github.com/v2fly/v2ray-examples
There is an example to start a container that listen on port 9000, run as a V2Ray server like below:
$ docker run -d -p 9000:9000 --name v2ray --restart=always -v /etc/v2ray:/etc/v2ray teddysun/v2ray
Warning: The port number must be same as configuration and opened in firewall.
more freenode can be foud at v2ray免费节点
Content type
Image
Digest
sha256:f29d9b864…
Size
15.2 MB
Last updated
over 3 years ago
docker pull aiboboxx/v2ray