mihanhunter 36b0b1823f
Change geoip and geosite links to Loyalsoldier
Download geosite and geoip dat files from Loyalsoldier/v2ray-rules-dat instead of v2fly repository
These dat files are defenetly more updated
2022-03-14 04:16:47 -04:00
..
2022-01-03 15:11:58 +09:00
2019-11-21 21:05:05 +09:00
2022-01-03 15:11:58 +09:00
2020-09-12 20:32:34 +09:00
2022-01-03 15:11:58 +09:00

V2Ray Docker Image by Teddysun

V2Ray is a platform for building proxies to bypass network restrictions.

It secures your network connections and thus protects your privacy.

Docker images are built for quick deployment in various computing cloud providers.

For more information on docker and containerization technologies, refer to official document.

Prepare the host

If you need to install docker by yourself, follow the official installation guide.

Pull the image

$ docker pull teddysun/v2ray

This pulls the latest release of V2Ray.

It can be found at Docker Hub.

Start a container

You must create a configuration file /etc/v2ray/config.json in host at first:

$ mkdir -p /etc/v2ray

A sample in JSON like below:

{
  "inbounds": [{
    "port": 9000,
    "protocol": "vmess",
    "settings": {
      "clients": [
        {
          "id": "11c2a696-0366-4524-b8f0-9a9c21512b02",
          "level": 1,
          "alterId": 64
        }
      ]
    }
  }],
  "outbounds": [{
    "protocol": "freedom",
    "settings": {}
  }]
}

Or generate a configuration file online by https://tools.sprov.xyz/v2ray/

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.