teddysun/xray

By teddysun

Updated 5 days ago

Xray-core Docker Image by Teddysun

Image
Networking
333

5M+

teddysun/xray repository overview

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.

  • latest, 26.4.17 (Dockerfile)
  • 26.4.15, 26.4.13
  • 26.3.27, 26.3.23
  • 26.2.6, 26.2.4, 26.2.2
  • 26.1.31, 26.1.23, 26.1.18, 26.1.13
  • 25.12.8, 25.12.2
  • 25.10.15
  • 25.9.11, 25.9.10, 25.9.5
  • 25.8.31, 25.8.29, 25.8.3
  • 25.7.26, 25.7.25, 25.7.24, 25.7.23
  • 25.6.8, 25.6.7
  • 25.5.16
  • 25.4.30
  • 25.3.31, 25.3.6, 25.3.3
  • 25.2.21, 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.

Tag summary

Content type

Image

Digest

sha256:9733ef5ec

Size

23.4 MB

Last updated

5 days ago

docker pull teddysun/xray