teddysun/xray

By teddysun

Updated 5 days ago

Xray-core Docker Image by Teddysun

Image
Networking
312

5M+

Xray-core Docker Image by Teddysun

Xray-core 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.

Supported tags and respective Dockerfile links
  • latest, 25.2.21(Dockerfile)
  • 25.2.18, 25.2.8
  • 25.1.30, 25.1.1
  • 24.12.31, 24.12.28, 24.12.18, 24.12.15
  • 24.11.30, 24.11.21, 24.11.11, 24.11.5
  • 24.10.31, 24.10.16
  • 24.9.30, 24.9.19, 24.9.16, 24.9.7
  • 1.8.24, 1.8.23, 1.8.21, 1.8.20, 1.8.19, 1.8.18, 1.8.17, 1.8.16, 1.8.15, 1.8.13, 1.8.12, 1.8.11, 1.8.10, 1.8.9, 1.8.8, 1.8.7, 1.8.6, 1.8.5, 1.8.4, 1.8.3, 1.8.1, 1.8.0
  • 1.7.5, 1.7.3, 1.7.2, 1.7.1, 1.7.0
  • 1.6.6, 1.6.5, 1.6.4, 1.6.3, 1.6.2, 1.6.1, 1.6.0
  • 1.5.10, 1.5.9, 1.5.8, 1.5.7, 1.5.6, 1.5.5, 1.5.4, 1.5.3, 1.5.2, 1.5.1, 1.5.0
  • 1.4.5, 1.4.4, 1.4.3, 1.4.2, 1.4.1, 1.4.0
  • 1.3.1, 1.3.0
  • 1.2.4, 1.2.3, 1.2.2, 1.2.1, 1.2.0
  • 1.1.5, 1.1.4, 1.1.3, 1.1.2, 1.1.1
  • 1.0.0
Reference
  • Supported architectures (more info): amd64, arm32v6, arm32v7, arm64v8, i386, ppc64le, s390x

Prepare the host

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

Pull the image

$ docker pull teddysun/xray

This pulls the latest release of Xray.

It can be found at Docker Hub.

Start a container

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

$ mkdir -p /etc/xray

A sample in JSON like below:

$ cat > /etc/xray/config.json <<EOF
{
  "inbounds": [{
    "port": 9000,
    "protocol": "vmess",
    "settings": {
      "clients": [
        {
          "id": "1eb6e917-774b-4a84-aff6-b058577c60a5"
        }
      ]
    }
  }],
  "outbounds": [{
    "protocol": "freedom",
    "settings": {}
  }]
}
EOF

Or some examples of uses for Xray-core https://github.com/XTLS/Xray-examples

There is an example to start a container that listen on port 9000, run as a Xray server like below:

$ docker run -d -p 9000:9000 --name xray --restart=always -v /etc/xray:/etc/xray teddysun/xray

Warning: The port number must be same as configuration and opened in firewall.

Docker Pull Command

docker pull teddysun/xray