docker 运行xray
配置文件放在宿主机/etc/xray/目录下,运行以下命令
docker run -d \ --name xray \ --restart=unless-stopped \ -v /etc/xray/config.json:/config.json \ -p 10808:10808 \ ghcr.io/xtls/xray-core:latest \ run -c /config.json验证代理是否启用
curl -x 127.0.0.1 ip.sb配置文件放在宿主机/etc/xray/目录下,运行以下命令
docker run -d \ --name xray \ --restart=unless-stopped \ -v /etc/xray/config.json:/config.json \ -p 10808:10808 \ ghcr.io/xtls/xray-core:latest \ run -c /config.json验证代理是否启用
curl -x 127.0.0.1 ip.sb