I am using a Docker tunnel and I wan to check the tunnel status during the test in the container. How do I do it?
Hi Aaron,
You can fetch the current tunnel status using the InfoAPI on the tunnel. Suppose the InfoAPI is available on the host over port 13001, then you need to expose the docker container port to host in the form 13001:8000. Use the below command to infuse the InfoAPI in the current docker image:
docker run -it -p 13001:8000 lambdatest/tunnel --user johndoe --key XXXXXXX --infoAPIPort 8000
Now, in order to fetch the current tunnel status, just execute the below command:
cur[l ](http://127.0.0.1:13001/api/v1.0/info)[http://127.0.0.1:13001/api/v1.0/in](http://127.0.0.1:13001/api/v1.0/info)