配置文件放在宿主机/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