Docker
Last updated
Was this helpful?
Last updated
Was this helpful?
You can use LocalXpose docker version the same way as LocalXpose CLI. Check the availabe commands .
since docker container has its own network, you cannot forward connections to localhost services like --to localhost:8080
, localhost here is pointing to your LocalXpose docker container not to your host, to forward the traffic to your host network then get your host local IP address for exmaple 192.168.100.10
, then do docker run -it localxpose/localxpose:latest tunnel http --to 192.168.100.10:8080
.
Another approach is to run LocalXpose docker container in your host network by passing --net host
to your docker run command, so the full command will be:
First create your file, then you have to mount it inside LocalXpose docker container, for example if we have the following config.yaml file:
Then mounting this config file to your LocalXpose conitaner and running the tunnels will be like: