docker run \ --name xray \ --network internal --restart always \ -v ~/app/back/xray-vless-reality-vision.json:/etc/xray-vless-reality-vision.json:ro \ -d ghcr.io/xtls/xray-core:latest \ "run" "-c" "/etc/xray-vless-reality-vision.json" config_file=~/app/back/xray-vless-reality-vision.json uuid=$(jq -r '.inbounds[0].settings.clients[0].id' $config_file) servername=$(jq -r '.inbounds[0].streamSettings.realitySettings.serverNames[0]' $config_file) public_key=$(jq -r '.inbounds[0].streamSettings.realitySettings.publicKey' $config_file) short_id=$(jq -r '.inbounds[0].streamSettings.realitySettings.shortIds[0]' $config_file) echo " uuid: $uuid" echo "servername: $servername" echo "public-key: ${public_key}" echo " short-id: ${short_id}"