docker 运行xray
📅 2026/7/8 8:16:13
👁️ 阅读次数
📝 编程学习
配置文件放在宿主机/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
编程学习
技术分享
实战经验