Docker – V2ray

V2Ray Docker Image by Teddysun:

1. Pull the image:

docker pull teddysun/v2ray

2.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": {}




3.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


Tagged on: , ,

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.