Sign inSign up

pocat/xray

By pocat

Updated 7 days ago

Docker Image for Xray

Image
0

10K+

pocat/xray repository overview

Supported Architectures

i386 amd64 arm32v6 arm32v7 arm64v8 ppc64le s390x

Usage explanations
  • Get this image
$ docker pull pocat/xray
  • Create a directory
$ mkdir -p /etc/xray
  • Modify the configuration
$ cat > /etc/xray/config.json <<EOF
{
  "inbounds": [{
    "port": 9000,
    "protocol": "vmess",
    "settings": {
      "clients": [
        {
          "id": "1eb6e917-774b-4a84-aff6-b058577c60a5",
          "level": 1,
          "alterId": 64
        }
      ]
    }
  }],
  "outbounds": [{
    "protocol": "freedom",
    "settings": {}
  }]
}
EOF
  • Start the service
$ docker run --network host --name xray -v /etc/xray:/etc/xray --restart=always -d pocat/xray

Tag summary

Content type

Image

Digest

sha256:bb785ef78

Size

20.5 MB

Last updated

7 days ago

docker pull pocat/xray